Am 01.08.2022 um 12:33 schrieb Damaji Kalunge:
If I have decided to follow incremental save approach:
After failing each field do we need to call doc.saveIncremental(.
Then it leads to too many intermediate PDF file creation and might impact the
performance and the cost.
For each PDF field in the doc
{
field.setValue("New Value 2”);
doc.saveIncremental(.
}
Is this understanding correct ?
Do you have nay example so I can refer.
You should add these fields to a list (use field.getCOSObject() to get
the COSDictionary object) and then use the saveIncremental() method that
uses a list of dictionary objects, then you'll need it only once.
Tilman
On 2022/07/27 18:25:08 Tilman Hausherr wrote:
You need to know what the original encryption was, and reuse the
passwords (user and owner).
An alternative would be to use incremental saving, but this is tricky as
it requires some knowledge of the COS model.
See the testSaveIncrementalAfterSign method in TestCreateSignature.java
in the source code download.
Tilman
Am 27.07.2022 um 06:11 schrieb Damaji Kalunge:
Hi Team,
We have encrypted Editable PDF and our requirement is to fill that
editable pdf by preserving the same encryption.
Approach :
Step 1:
- Read PDF File .
- if encrypted remove encryption
- pDDocument.setAllSecurityToBeRemoved(true);
- Fill the editable PDF using *PDAcroForm*
- Save *filled editable PDF*
- Step 2:
- Read Filled editable PDF file.
-
*Want add encryption/permission same as original PDF *
- *save filled editable PDF with original *
*encryption/permission . *
Can you please help out with this using Apache PDFBOX ?
Thanks
Damaji
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org