Closed BenjaminFarris closed 1 year ago
Currently , when you are using update_page_form_field_values()
you are setting the flag NeedAppearances to true which is asking the viewer to regenerate the appearances of the fields when opening the file : this mean that the "field" of the code is regenerated.
I've started a PR to prepare a fix to not set the NeedAppearances flag but generate the fields Appearance
Here's a description of the issue https://stackoverflow.com/questions/73533672/pypdf2-doesnt-display-barcode-pdf417-after-using-update-page-form-field-value/73535421#73535421
pdf417 barcode isn't displayed after using update_page_form_field_values()
Environment
Which environment were you using when you encountered the problem?
Code + PDF
This is a minimal, complete example that shows the issue:
The PDF: https://www.uscis.gov/sites/default/files/document/forms/i-130.pdf - you can add it to the tests
The issue
It works, just doesn't work correctly