You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Hendrik Degener (JIRA)" <ji...@apache.org> on 2017/03/16 09:33:41 UTC

[jira] [Created] (PDFBOX-3718) Incorrect Appearance Characteristics on setting a field value and flattening a form

Hendrik Degener created PDFBOX-3718:
---------------------------------------

             Summary: Incorrect Appearance Characteristics on setting a field value and flattening a form
                 Key: PDFBOX-3718
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3718
             Project: PDFBox
          Issue Type: Bug
          Components: AcroForm
    Affects Versions: 2.0.5
            Reporter: Hendrik Degener


Consider the following abstract form tree:
* Field F
** /FT /Tx
** /DA /Helv 9 Tf 0 g
** Kids
*** Annot Kid1
**** /DA /Helv 12 Tf 0 g
*** Annot Kid2

If you execute F.setValue("XY"), the default appearance font size of F is applied on all Annotations effectively overriding the font size of Kid1, which should be 12 after all.
The same happens when you execute a form.flatten(field[], true), because the appearance characteristics are refreshed, but again only considering the field's DA and not the annotations' DA font size.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org