Skip to content

[Bug]: Invalid PDF structure. #19980

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

Open
jcalfee opened this issue May 31, 2025 · 0 comments
Open

[Bug]: Invalid PDF structure. #19980

jcalfee opened this issue May 31, 2025 · 0 comments
Labels

Comments

@jcalfee
Copy link

jcalfee commented May 31, 2025

Attach (recommended) or Link to PDF file

docx-to-pdfjs-test.pdf

Chromium 136:

Image

Also occures in chromium 124..

Web browser and its version

Chromium 136

Operating system and its version

pop-os 22.04

PDF.js version

5.2.133

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

Try to load the PDF file, something like this:

    <object data={'/pdfjs/web/viewer.html?file=' + props.link} type="text/html" class="w-full h-full">
      <div>Pdf Viewer / Editor embed unavailable, html {'<object type="text/html">...'} tag is unavailable</div>
    </object>

And observer the error in the log. Other PDFs work in the code above and this PDF opens in other PDF viewers.

The PDF as created by creating a libreoffice7.3 then saved as a docx, then libreoffice7.3 was used again to convert the docx into the attached PDF.

What is the expected behavior?

PDF load please..

What went wrong?

Structure error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants