page.insert_htmlbox raises ValueError: 'text' must be a string or a Story
#4795
-
Description of the bughello. a test page from a pdf with a text layer was translated successfully using https://medium.com/@pymupdf/translating-pdfs-a-practical-pymupdf-guide-c1c54b024042 as a template. When processing the full 200 page document with How to reproduce the bugusing Python 3.12.3 and PyMuPDF 1.26.6 in a
After a minute or two the process crashes with: PyMuPDF version1.26.6 Operating systemLinux Python version3.12 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
... and how do you know that this is a bug? |
Beta Was this translation helpful? Give feedback.
-
|
Please provide the test file and insert a check for the type of the returned |
Beta Was this translation helpful? Give feedback.
-
|
apologies, pardon my ignorance. i added before i added this check: |
Beta Was this translation helpful? Give feedback.
Please provide the test file and insert a check for the type of the returned
"english"object.This is actually not a bug but a
Discussionsitem ... transferring.