-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Badly rendered Times New Roman PS #10665
Comments
The PDF defines the same fonts many times. For example, font There is a font hash computation in Here is a reduced PDF that contains two fonts from the original PDF |
Really excellent analysis, thank you; this made the bug easy to fix!
In some badly generated PDF files there can be huge amounts of identical fonts, and the purpose of |
This is awesome thanks so much for the help! |
Attach (recommended) or Link to PDF file here:
EMG8 -Cambridge Essentail Gold Maths 8-B 117.pdf
Configuration:
Steps to reproduce the problem:
1.
Open the PDF (its a single page extracted from a book) and see the badly rendered fonts
What is the expected behavior? (add screenshot)
On any other PDF reader it renders fine:
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
Current github pages viewer: https://mozilla.github.io/pdf.js/web/viewer.html
Notes:
We've managed make it work by editing the fonts within the PDF. It is currently "Times New Roman PS", re-rendering it with just "Times New Roman" seems to fix it.
There are no console errors, or any other visible signs of solutions such as missing CMaps.
Unfortunately we are not allowed to alter PDFs, so re-rendering each one is not a viable solution.
If anyone can give any insight into this and a possible solution, that would be massively appreciated 🤠
The text was updated successfully, but these errors were encountered: