How to save XFA properly to my PDF #3095
Replies: 3 comments 1 reply
-
I cannot speak for XFA as I have never used it. But
does not sound right. I suspect that the signature might become invalid, but the encryption should not be affected (if in place). |
Beta Was this translation helpful? Give feedback.
-
The encryption works if I use the |
Beta Was this translation helpful? Give feedback.
-
For anyone looking a solution for this, I decided to use iTextPDF5 in C# (alternative is itext7 in Java). The Stamping Properties and append in iTextPDF5 in C# works properly. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi PyPDF community,
I am currently creating a project where I can automatically fill up the PDF forms using Python. I stumbled upon this library which is a perfect tool for me to edit PDF.
I am currently experimenting a bit and I have two pdf I have imported, one is not filled up but the other one is. I am only targeting the datasets in XFA to copy since, that is the data that I want to fill/edit. Here's is the code that I have used.

Upon execution, and trying to open the file, I'm seeing warning from Adobe Reader:

Also, if I try to fill up a form, it shows this, and I cannot save the file.

I believe the PDF file is encrypted and signed, and when using my code to edit it, it loses it's encryption (SECURED).
I looked into the documentations and tried
incremental=True
but I cannot save any XFA changes using this method.Additionally, I can't send the PDF since it contains confidential information.
Beta Was this translation helpful? Give feedback.
All reactions