-
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
Text not shown properly, possibly a font problem #11151
Comments
Closing since this is a duplicate of #7367 where not being able to load the fonts for AcroForms causes font substitution. |
I looked at field "4006" (Bearbeiter) and that one doesn't have an appearance stream. /NeedAppearances is set so the viewer should create it. /DA is "/QuickPDFF3ce08b65 10 Tf 0 0 0 rg" and the font "QuickPDFF3ce08b65" is available in the AcroForm default resources and fully embedded ("Root/AcroForm/DR/Font/QuickPDFF3ce08b65/FontDescriptor/FontFile2") so no font substitution should be needed. Thus I wonder whether PDF.js looks at the AcroForm default resources. |
@THausherr thanks for your analysis. |
Yeah IMHO this should be reopened. Alternatively a look / explanation whether PDF.js uses the fonts in |
I have re-opened this since it seems to be a bit different, but I think the underlying cause is the same, namely that we don't do anything yet with the fonts from the |
@timvandermeij thank you for clarifying. |
This appears to be resolved if I set |
This works for me as well: The font problem seems to disappear, setting this option to true. |
Closing since this is fixed now with and without forms rendering, likely after #12828. |
The attached PDF file does not show properly, when rendered with PDF.js. The console log shows fonts warnings.
I am not sure if this is a problem in the PDF file or in PDF.js.
Attach (recommended) or Link to PDF file here:
937-Unfall.pdf
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)

Google Chrome seems to render text correctly:
As does Adobe Acrobat Reader DC:

What went wrong? (add screenshot)

Some text is out of place, too large:
Browser console log shows font warnings:

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
The text was updated successfully, but these errors were encountered: