Skip to content

[Bug]: PDF Is Blank (No render) if PDF is too long. #19587

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

Closed
Write opened this issue Feb 28, 2025 · 1 comment
Closed

[Bug]: PDF Is Blank (No render) if PDF is too long. #19587

Write opened this issue Feb 28, 2025 · 1 comment

Comments

@Write
Copy link

Write commented Feb 28, 2025

Attach (recommended) or Link to PDF file

https://s3.us.archive.org/20250301003705_1229202c/affaire-betharram-revelations-sur-des-plaintes-et-signalements-enterres-mediapart-01-03-2025-001833-mobile.pdf

Affaire_Betharram__revelations_sur_des_plaintes_et_signalements_enterres__Mediapart_01_03_2025_001833-mobile.pdf

Web browser and its version

135.0.1

Operating system and its version

macOS 15.3.1

PDF.js version

PDF 4b5b4e9abdcacc587bb6cb516bf45ee4 [1.4 - / -] (PDF.js: 4.10.22 [4547f23])

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

No, or at least, not when using PDF.js through the online viewer.

Is a browser extension

No

Steps to reproduce the problem

Open the PDF Document, it is blank. Although the height of the document seems to be the right one.
Online PDF.js viewer seems to work just fine.

What is the expected behavior?

The PDF to actually render.

What went wrong?

Nothing at all is shown.

Link to a viewer

No response

Additional context

Stack trace :

renderView: DOMException: CanvasRenderingContext2D.transform: Canvas is already in error state.
[...]
PDF.js v4.10.22 (build: 4547f230b)
Message: CanvasRenderingContext2D.transform: Canvas is already in error state.
[...]
Uncaught Error: _onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.
@Snuffleupagus
Copy link
Collaborator

Online PDF.js viewer seems to work just fine.

Rendering of very long pages was recently improved in PR #19128, which will ship in Firefox 137.

There's still some remaining issues, which are tracked in e.g. bug 1713266 and bug 1943094 of which this is effectively a duplicate.

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

No branches or pull requests

2 participants