-
Description of the bugI have updated to PyMuPDF 1.23.8. But I still can't use 'insert_htmlbox'. How to reproduce the bugpython -m pip install PyMuPDF --upgrade PyMuPDF version1.23.8 Operating systemWindows Python version3.11 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
This new method has only been implemented in the new "rebased" implementation of PyMuPDF. In first half of January we plan to switch activation defaults, so the usual import statement will point to rebased. |
Beta Was this translation helpful? Give feedback.
-
Please let me know what you think about this new feature ... also feel to ask questions or voice any suggestion. |
Beta Was this translation helpful? Give feedback.
-
I think this is a very neat feature! Before this, insert_text was barely usable for me. Mixing Chinese and English text requires Chinese fonts, which can cause large and ugly spacing for ASCII characters. Now, with typesetting offloaded to HTML, it's much more convenient. I was trying to use this feature to insert invisible texts into scanned PDFs to make them searchable. For my use case, however, this method is too slow, taking hundreds of times longer than the original. And most importantly, it seems to not support the alpha channel? |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for your feedback. Very reassuring. Multiple PyMuPDF components are used:
Step 1 above certainly is the most time consuming one - especially when executed numerous times because there was no initial fit. Our measurements indicate that in this case 10 to 15 executions of step 1 can occur to find an optimal scaling factor. In comparison, In fact, As a general recommendation, you should consider using |
Beta Was this translation helpful? Give feedback.
This new method has only been implemented in the new "rebased" implementation of PyMuPDF.
For a short timeframe (3 more weeks or so), please use
import fitz_new as fitz
to access it.In first half of January we plan to switch activation defaults, so the usual import statement will point to rebased.