Skip to content
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

Expose dump_data_fields_utf8 ? #37

Open
ldng opened this issue Apr 2, 2020 · 3 comments
Open

Expose dump_data_fields_utf8 ? #37

ldng opened this issue Apr 2, 2020 · 3 comments

Comments

@ldng
Copy link

ldng commented Apr 2, 2020

My version of pdftk (3.0.2) has both a dump_data_fields and a dump_data_fields_utf8.
The former does not output accent correctly while the later does the job as expected.

Could/should it be exposed ?
Should the dump_data_fields python function use silently the dump_data_fields_utf8 command when available since in Python3 all string are unicode anyway ?

@revolunet
Copy link
Owner

Agree that we should only have one function for this

@mogli91
Copy link

mogli91 commented Oct 20, 2020

+1
I ran into this issue when running pdftk-java in a debian docker container. Basically, German umlaut characters and other special unicode characters are simply replaced by a "?". However, if I use cmd = f'{pypdftk.PDFTK_PATH} debug_filled.pdf dump_data_fields_utf8' then also p = pypdftk.check_output(cmd, shell=True) has mainly the expected output (correct unicode characters).
I am saying mainly because I noticed that multiline FieldValues are currently unsupported. I will open a separate issue for this (created issue #43 )

@JHei
Copy link

JHei commented Jan 13, 2025

+1
unfortunately still not available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants