Description
Attach (recommended) or Link to PDF file
Web browser and its version
Firefox 128.0.3; Chrome 127.0.6533.89
Operating system and its version
Windows 10 22H2 (AMD64; build 19045.4651)
PDF.js version
4.4.10 (5c51d56) (for the Firefox built-in); 4.5.186 (5e052af) (for the https://mozilla.github.io/pdf.js/web/viewer.html)
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
N/A (both versions tested)
Steps to reproduce the problem
Open the file and view the contents of PDF
What is the expected behavior?
The document is rendered properly, especially with the text in PDF. On Acrobat (first photo) the font is loaded correctly, while on PDFium (second photo) it is still readable despite the fact that the correct font is missing.
What went wrong?
The text is not rendered properly in PDF.js, whether on the built-in version in Firefox (first image) or on the https://mozilla.github.io/pdf.js/web/viewer.html in Chrome (second image). Both versions have an error in console stating Warning: Invalid "Length1" property in Type1 font -- trying to recover.
Link to a viewer
Not applicable
Additional context
Tested PDFium version is probably 6265082af (based on the DEPS file in the Chromium source code), tested Adobe Acrobat Reader version is 24.2.20965.0