Problem with checkboxes and comboboxes when convert_to_pdf (flattening) #2902
Unanswered
dantard
asked this question in
Looking for help
Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm facing a weird problem with some PDF files that contain checkboxes and comboboxes.
When I use the function
convert_to_pdf()
the library show black boxes instead of the expected checkboxes and comboboxes.Here the code I used:
The
example.pdf
file is here: example.pdfI'm using the latest PyMuPDF version (1.23.7). It only happens with some PDF files, not all of them. Any ideas?
On the other hand, I've been trying to workaround this applying a redact annotation and inserting the UTF8 marker checkbox symbol but neither
insert_textbox()
norinsert_text()
seem to deal with UTF8 characters (it is replaced by a ? or a dot). Am I right? Is that a way to make it work?Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions