You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am filling a form with text and checkbox fields. Text values may contain german characters.
If a checkbox is programmatically selected then subsequent fields are corrupted.
It might not be a pypdf fault, see viewers comparison in caveats below.
vs.
Caveats:
if the corrupted field gets focus the displayed text is correct ( back to incorrect when the focus is lost):
case reproduced in Adobe Acrobat Reader
Chrome viewer shows correct characters:
Firefox viewer shows incorrect characters (even in the first field) regardless of checkbox:
Environment
Which environment were you using when you encountered the problem?
The text was updated successfully, but these errors were encountered:
kubaPod
changed the title
Checking checkboxes interferes with subsequent text fields' encoding.
Checkboxes, update_page_form_field_values, encoding and german characters.
Jul 26, 2023
I am filling a form with text and checkbox fields. Text values may contain german characters.
If a checkbox is programmatically selected then subsequent fields are corrupted.
It might not be a
pypdf
fault, see viewers comparison in caveats below.Caveats:
if the corrupted field gets focus the displayed text is correct ( back to incorrect when the focus is lost):

case reproduced in Adobe Acrobat Reader
Chrome viewer shows correct characters:

Firefox viewer shows incorrect characters (even in the first field) regardless of checkbox:

Environment
Which environment were you using when you encountered the problem?
$ python -m platform Windows-10-10.0.19045-SP0 $ python -c "import pypdf;print(pypdf.__version__)" 3.12.2
Code + PDF
This is a minimal, complete example that shows the issue:
visa-form.pdf
zurich-test-no-checkbox.pdf
zurich-test-with-checkbox.pdf
Traceback
TODO
The text was updated successfully, but these errors were encountered: