[ 
https://issues.apache.org/jira/browse/PDFBOX-3262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15185027#comment-15185027
 ] 

Maruan Sahyoun commented on PDFBOX-3262:
----------------------------------------

Unfortunately there are two ways of flattening a form using Adobe Acrobat. 
Preflight and a JavaScript action. Preflight shows hidden fields in the 
flattened PDF where the JavaScript action doesn't show hidden fields in the 
flattened PDF.  We could add an option to replicate the JavaScript based 
behavior - WDYT?

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to