View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0004273||Scribus||public||2006-09-20 21:03||2007-11-22 23:37|
|Platform||AMD Opteron||OS||Linux||OS Version||Kernel 2.6.12|
|Target Version||Fixed in Version|
|Summary||0004273: PDF Forms: Manual tracking in text fields isn't respected.|
|Description||Bug 3282 is probably closely related.|
Adding manual tracking in PDF form fields does not get exported.
I believe the proper way to do this is a 'n Tc' operator -- where n is a number and Tc is the postscript character spacing operator -- to DA (default appearance) key of the field.
PDF Reference 1.6 Page 368 (I checked back as far as PDF 1.4)
|Steps To Reproduce||1. Use the supplied file (it has tracking set to 20% on the field)|
2. Export to PDF 1.4+
The value of the field DA is:
'/Helv 18.00000 Tf 0.00000 0.00000 0.00000 rg',
No mention of any form of character spacing changes.
|Tags||No tags attached.|
tracking_test.sla (43,576 bytes)
In theory this could work, only problem is that the /DA entry of a text field
is applied to the whole string defined be the /V key. So if you write the /DA
entry this way /DA ( 0 0 1 rg 0.25 Tc 12 Tf ) it would apply the spacing to
the whole string. And i guess you want to have that kerning adjustment only
for specific glyph pairs.
In my case no, I believe it should apply to the entire field (value of V key).
As AcroFrom strings are being supplied by the user, applying custom kerning or tracking adjustments to specific glyph pairs doesn't seem realistic (outside of embedding the font again with a custom metrics file).
Related to that though, I can see how it might be nice to have the exact text/styling shown in Scribus field -- things like bolded or different colour words in the string -- to be preserved in the PDF. All annotations (Acroform widgets are considered annotations) can have an appearance dictionary (AP key) associated with then (since PDF 1.2). By converting the field appearance to a Form XObject stream the exact styling could be preserved until the field was edited: At which point the DA key would rule and be used to style the entire string of new input (except when the RV key is present and CSS attributes override it).
|2006-09-20 21:03||arguile||New Issue|
|2006-09-20 21:03||arguile||File Added: tracking_test.sla|
|2006-09-20 23:28||mhanski||Relationship added||child of 0003831|
|2006-09-21 06:40||fschmid||Note Added: 0012586|
|2006-09-21 06:41||fschmid||Note Edited: 0012586|
|2006-10-02 16:04||arguile||Note Added: 0012760|
|2007-11-22 23:36||christoph_s||Relationship added||duplicate of 0005444|
|2007-11-22 23:37||christoph_s||Status||new => closed|
|2007-11-22 23:37||christoph_s||Resolution||open => duplicate|