[
https://issues.apache.org/jira/browse/PDFBOX-3809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16423960#comment-16423960
]
Ricky Baker edited comment on PDFBOX-3809 at 4/3/18 6:55 PM:
-------------------------------------------------------------
Maruan, we have a signature that we're trying to apply but we found that it
only works if we flatten. We also found that when flattening we lose any
calculated fields which we have several of, so if we can only flatten (the
signature we're adding) specific fields we'll get what we want. And yes we
understand that flattening will take away functionality.
also we're using version 2.0.9
was (Author: rickbake):
Maruan, we have a signature that we're trying to apply but we found that it
only works if we flatten. We also found that when flattening we lose any
calculated fields which we have several of, so if we can only flatten (the
signature we're adding) specific fields we'll get what we want. And yes we
understand that flattening will take away functionality.
> PDAcroForm.flatten(PDField list, refreshAppearances boolean) flattens all
> form fields instead of specified ones.
> ----------------------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-3809
> URL: https://issues.apache.org/jira/browse/PDFBOX-3809
> Project: PDFBox
> Issue Type: Improvement
> Components: AcroForm
> Affects Versions: 2.0.5, 2.0.6, 2.0.7
> Reporter: Cristin Donaher
> Priority: Minor
> Attachments: Example of fields that need to enter and the calculated
> field from those values.docx, sf270.pdf
>
>
> Thanks for the excellent PDF library. For my use case I need to flatten a
> subset of the AcroForm fields. I was attempting to use the
> PDAcroForm.flatten call, passing in my field list. However, after the method
> is called, all the fields are gone.
> The method itself appears to remove all PDFAnnotationWidgets from each page
> and at the end clears the acroform's field set.
> Is the javadoc description (This will flatten the specified form fields.)
> just misleading? Could a flatten call for a subset of fields be added?
> Thanks
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]