I was aware of that. I prepared an example jar and a project, but that
project was larger than 1MB and so I was unable to send it!
Thank you for the help. I will try it out.
On 24.06.21 05:50, Tilman Hausherr wrote:
> I tried this code on the 3.0 version on the SourceFailure.pdf file.
>
> PDAcroForm acroForm = doc.getDocumentCatalog().getAcroForm();
> List<PDField> list = new ArrayList<>();
> for (PDField field : acroForm.getFieldTree())
> {
> list.add(field);
> }
> acroForm.flatten(list, true);
>
> and after saving I got a fully flattened file. Please try that with
> 2.0.24. Your zip file needs us to analyse > 500 lines of code and set
> up a project with dependencies.
>
> Tilman
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]