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
@coolbombom
the old code was not generating text appearance : it was the pdf viewer who was generating them.
However you are right there is a improvement to be done to cope with your case
Added encoding ability to update_page_form_field_values so functionality uses that encoding to populate from fields.
Fixes issue that i had:
py-pdf#2035
Hi
when using update_page_form_field_values special characters (æ,ø,å in denmark) is not correct encoded. ø bcomes ø
I tried to use the function update_page_form_field_values from PyPDF2 version 3.0.0 (https://pypdf2.readthedocs.io/en/3.0.0/_modules/PyPDF2/_writer.html#PdfWriter.update_page_form_field_values) inside version pypdf 3.13.0. Replaced the function from the old version inside the new. Then æ,ø,å worked fine, so there is an issue with the new update_page_form_field_values function.
The old update_page_form_field_values function has other flaws though, like already filled form fields not being updated. see my issue here: #2034
Environment
Which environment were you using when you encountered the problem?
$ python -m platform Linux-6.2.12-arch1-1-x86_64-with-glibc2.37 $ python -c "import pypdf;print(pypdf.__version__)" 3.13.0
Code
test.pdf
Traceback
no traceback
The text was updated successfully, but these errors were encountered: