Skip to content

[Bug]: "Invalid "Length1" property in Type1 font" in a PDF file generated in 2005 #18548

Open
@gacelperfinian

Description

@gacelperfinian

Attach (recommended) or Link to PDF file

https://web.archive.org/web/20080226202605im_/http://www.la84foundation.org/6oic/OfficialReports/1972/orw1972.pdf (43 MB)

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.

orw1972_acrobat

orw1972_pdfium

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.

orw1972_pdfjs_ff

orw1972_pdfjs_cr

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions