Here's a PDF flattened by itext
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/acroforms/cmp_checkbox_flatten.pdf
and they do something similar to what we do, i.e. remove the fields and
converting it to form XObjects.
Tilman
Am 25.05.2021 um 19:03 schrieb [email protected]:
Am Dienstag, dem 25.05.2021 um 18:33 +0200 schrieb Ranjeet Kuruvilla:
Hallo.
It is clear, that flattening does have a bug. Compare flattening of
PDFBox with IText and you realize, that PDFBox destroys all fields,
once
I call
acroform.flatten(fields, true) or acroform.flatten(fields, false)
the purpose of flatten is that the flattened fields are removed and
become part of the regular page content.
If you'd like to keep the field but would like it to be protected you
have to set the field to read only. Keep in mind that one could use a
lib and remove the flag and change the content afterwards.
Now, if there is really a bug I need to have a clear description how to
reproduce it together with sample content. If you're able to provide
that I'm happy to take a look.
BR
Maruan
.
How can I request someone to fix flattening and make it work like in
IText. That is that the right fields are flattened while all the other
fields remain untouched!
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]