[
https://issues.apache.org/jira/browse/PDFBOX-2062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maruan Sahyoun resolved PDFBOX-2062.
------------------------------------
Resolution: Fixed
changed the behavior for PDFBOX 2.0.0 so that the DA value is read when the
field value is set and not upon field initialization for variable text fields.
> Setting a PDFFormField's value with a specific font size causes the font size
> to change on click
> ------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-2062
> URL: https://issues.apache.org/jira/browse/PDFBOX-2062
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm, PDModel
> Affects Versions: 1.8.5
> Environment: Linux, OSX
> Reporter: Akshay Rawat
> Assignee: Maruan Sahyoun
> Labels: AcroForm, Appearance
> Fix For: 2.0.0
>
>
> Setting the font size of a PDField causes the font size to change on click on
> the field. It starts out with incorrect font size. When the field is clicked,
> it displays in the font size correctly. Clicking outside the field, reverts
> back to the incorrect font size.
> This behavior was also mentioned in PDFBOX-1419 in passing.
> Code:
> {code}
> pdfFormField.getDictionary.setString(COSName.DA, "/Helv 10 Tf 0 g”)
> pdfFormField.setValue("Hello”)
> {code}
> A simple example of such a PDF [is
> here|http://monosnap.com/file/5fxGhQSdXszX4DIoTyGguZ3ploinAC].
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]