Skip to content

[Bug]: Invalid PDF structure. #19980

Open
@jcalfee

Description

@jcalfee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions