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 2014/08/22 23:14:13 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14107498#comment-14107498 ] 

Maruan Sahyoun commented on PDFBOX-2062:
----------------------------------------

this is somewhat similar to PDFBOX-2249 although there are some additional issues specific to a listbox.

> 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
>
> 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.2#6252)