-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filled Choice Fields Not Rendered Correctly By Adobe Acrobat #2749
Comments
Have you tried using the latest main code or the 4.3.0 version not yet available on PyPI? |
I just downloaded it, I am not facing the same issue with version I appreciate everyone's efforts to build this great library! |
We intended to get this released already, but our release automation has not been working correctly and thus we are currently waiting for Martin as the maintainer with write permissions to tackle this manually. |
Thank you for the update! |
When reading a form with Adobe Acrobat that previously had a
Choice
(Drop-down list
in Acrobat) field populated withpypdf
in the manner specified in the documentation, the default value is always rendered. Behavior does not occur with MacOS Preview.I did see #2747 , #2611, and #2614, but I wanted to provide a full example for reproducing.
I have also tried this on version
4.3.0
and received the same behavior.Environment
Which environment were you using when you encountered the problem?
Code + PDF
This is a minimal, complete example that shows the issue:
Share here the PDF file(s) that cause the issue. The smaller they are, the
better. Let us know if we may add them to our tests!
The below PDFs shared may be used in tests if desired. They were created for the sole purpose of creating a simple PDF to reproduce this issue.
single-dropdown-field.pdf
^ Created using Adobe Acrobat, contains a single "Drop-down list" Field with the name
TEST_DROPDOWN
result-single-dropdown-field.pdf
^ Result from the script
Snapshots of form in Adobe Acrobat
Posted in comment below
Additional Details
After populating the fields, I can see the
/V
field is correctly set to the value I want, MacOS preview also renders the PDF correctly. Unfortunately, I need Acrobat compatibility before anything else.The text was updated successfully, but these errors were encountered: