You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Akshay Rawat (JIRA)" <ji...@apache.org> on 2014/05/06 22:04:27 UTC

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

Akshay Rawat created PDFBOX-2062:
------------------------------------

             Summary: 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


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”)
{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)