You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (JIRA)" <ji...@apache.org> on 2015/03/16 08:30:38 UTC

[jira] [Updated] (PDFBOX-2062) Setting a PDFFormField's value with a specific font size causes the font size to change on click

     [ https://issues.apache.org/jira/browse/PDFBOX-2062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maruan Sahyoun updated PDFBOX-2062:
-----------------------------------
    Fix Version/s: 2.0.0

> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org