-
Notifications
You must be signed in to change notification settings - Fork 432
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
1.24.2/1.24.3: spurious characters introduced when using subset_fonts and insert_pdf #3494
Comments
I can also reproduce this with 1.24.2 but NOT with 1.24.1. |
Downstream link: https://gitlab.com/plom/plom/-/issues/3374 |
This is indeed related to #3470 and will thus be solved with the next PyMuPDF version containing this MuPDF fix. |
Just in case you are not aware:
Given this background, we will not continue fixing any issues around the fontTools-based solution. |
Thanks sounds very promising! Is there a timeline or issue I can follow? I the meantime, perhaps I'll try to scale back our use of |
We are testing this feature for a considerable time now. That new fix should actually be it. For my own purposes, I am using the new version all the time. MuPDF just recently has introduced rich text support for FreeText annotations (not yet supported in PyMuPDF). And the technique used is ... again the Story class! |
Fixes Issue #3374, by falling back on the deprecated in-python fonttools based technique for doing subsetting. To be removed once the new MuPDF-based code is a little more mature, or at least once [1, 2] are fixed. [1] pymupdf/PyMuPDF#3470 [2] pymupdf/PyMuPDF#3494
Description of the bug
Maybe a duplicate or at least related to #3470. When I use
insert_pdf
to copy a page from one PDF to a new document, then usesubset_fonts
on the new document, I get spurious letters. In my example below, its an "E". But we've also seen "M".How to reproduce the bug
MWE:
version1.pdf
is: version1.pdfPyMuPDF version
1.24.3
Operating system
Linux
Python version
3.12
The text was updated successfully, but these errors were encountered: