-
Notifications
You must be signed in to change notification settings - Fork 176
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
Wrong letters in pdf #250
Comments
Your PDF example file contains DEF text content but show ABC when opened in a PDF viewer. This seems to be done by using rg/RG operators to manually draw ABC and avoiding to use Text streams or something like it (I am no PDF expert). |
This behavior is caused by a bug/missing feature of lopdf. I am relatively sure that the rg/RG operators have nothing to do with this, as they seem only set the color for whatever comes next in the content stream. The relevant part of the PDF that is responsible for rendering the
The first line sets the font (which is defined in the resource dictionary of the page), What lopdf would now need to do, which isn't implemented yet, is:
At least in this case, both things contain the information that is needed to properly map A solution to #125 may lay some groundwork for this issue to be solved. |
Hi,
The following code reports wrong letters (they are added by 4 for some reasons)
The culprit:
https://www.dropbox.com/scl/fi/6a8zuy70s05pntvxm0vae/test.pdf?rlkey=ylju1wbavr8rff10jp621u6bo&dl=0
It reports DEF instead of ABC.
Any idea why ? anything wrong with my code ?
Thanks
The text was updated successfully, but these errors were encountered: