-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Spaces are render as dots #8707
Comments
brendandahl
added a commit
to brendandahl/pdf.js
that referenced
this issue
Aug 4, 2017
In issue mozilla#8707, there's a char code mapped to a non- existing glyph which shouldn't be drawn. However, we saw it was missing and tried to then use the post table and end up mapping it incorrectly. This illuminated a problem with issue mozilla#5704 and bug 893730 where glyphs disappeared after above fix. This was from the cmap returning the wrong glyph id. Which in turn was caused because the font had multiple of the same type of cmap table and we were choosing the last one. Now, we instead default to the first one. I'm unsure if we should instead be merging the multiple cmaps, but using only the first one works.
This didn't solve my problem... :( |
movsb
pushed a commit
to movsb/pdf.js
that referenced
this issue
Jul 14, 2018
In issue mozilla#8707, there's a char code mapped to a non- existing glyph which shouldn't be drawn. However, we saw it was missing and tried to then use the post table and end up mapping it incorrectly. This illuminated a problem with issue mozilla#5704 and bug 893730 where glyphs disappeared after above fix. This was from the cmap returning the wrong glyph id. Which in turn was caused because the font had multiple of the same type of cmap table and we were choosing the last one. Now, we instead default to the first one. I'm unsure if we should instead be merging the multiple cmaps, but using only the first one works.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Link to PDF file (or attach file here): 07_2017_managery (21).pdf
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
The PDF should render normally with all the spaces.

What went wrong? (add screenshot)
Every spaces are replaced by a dot.
I tested with an old version of PDF.js (
1.7.235
) and it works well. So I guess it's a regression.The text was updated successfully, but these errors were encountered: