Skip to content
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

PDF.js doesn't render large images in PDF that other renderers do #17289

Closed
thiagohp opened this issue Nov 17, 2023 · 0 comments · Fixed by #17946
Closed

PDF.js doesn't render large images in PDF that other renderers do #17289

thiagohp opened this issue Nov 17, 2023 · 0 comments · Fixed by #17946

Comments

@thiagohp
Copy link

thiagohp commented Nov 17, 2023

Link to PDF file: example.pdf

  • Firefox 119.0.1 (64-bit), Chromium 119.0.6045.159 (Official Build) snap (64-bit)
  • Ubuntu Linux 23.04.
  • PDF.js version: 4.0.189 [50f52b4]
  • Is a browser extension: no.

Steps to reproduce the problem:

  1. Just open the PDF on PDF.js

What is the expected behavior?
Notice the scanned book page image gets rendered:
image
Screenshot take from Atril Document Viewer.

What went wrong?
Notice the scanned book page does not get rendered here:
image

Console log:
PDF 247b3d402477644b1b7b61c8c1311da0 [1.6 PDF24 / PDF24] (PDF.js: 4.0.189 [50f52b4]) [viewer.mjs:12052:13]
Warning: Unsupported header type 1970628964 (uuid). 2 [pdf.worker.mjs:339:13]
Warning: JPX: Unsupported COD options (terminationOnEachCodingPass, verticallyStripe, predictableTermination). 08:55:09.017 Warning: Unable to decode image "img_p0_1": "JpxError: JPX error: JPX error: Invalid tag tree".
Warning: Dependent image isn't ready yet

Last three lines repeat for every scanned page image.

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

Successfully merging a pull request may close this issue.

2 participants