You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Christian Brandt (JIRA)" <ji...@apache.org> on 2016/03/08 15:29:40 UTC

[jira] [Updated] (PDFBOX-3262) AcroForm flattening will cause hidden fields become visible

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

Christian Brandt updated PDFBOX-3262:
-------------------------------------
    Attachment: hidden_fields.pdf

A test document that can be used to reproduce the bug. Both fields are prefilled so just call PDAcroForm.flatten() and see that both fields are visible in the result. (only one should be).

> AcroForm flattening will cause hidden fields become visible
> -----------------------------------------------------------
>
>                 Key: PDFBOX-3262
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3262
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>    Affects Versions: 2.0.0
>            Reporter: Christian Brandt
>              Labels: newbie
>         Attachments: hidden_fields.pdf
>
>
> Hi!
> When I flatten a pdf file containing both visible and hidden fields, the hidden ones surprisingly become visible. I believe that the hidden ones should be kept hidden, e.g. by dropping them completely before flattening.
> I made a workaround which removes hidden fields from the document before flattening but it would make sense that the library would do this automatically, and therefore I suspect that this is a bug.
> Cheers!



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