Skip to content

Bottom third of tall PDF document is clipped/unpainted #12957

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
dholbert opened this issue Feb 4, 2021 · 2 comments · Fixed by #19604
Closed

Bottom third of tall PDF document is clipped/unpainted #12957

dholbert opened this issue Feb 4, 2021 · 2 comments · Fixed by #19604

Comments

@dholbert
Copy link

dholbert commented Feb 4, 2021

Attach (recommended) or Link to PDF file here: u6-longrange.pdf

(original link: http://dl.ubnt.com/qig/u6-longrange , linked from https://store.ui.com/collections/unifi-network-access-points/products/unifi-6-long-range-access-point ("installation guide")

Configuration:

  • Web browser and its version: Firefox Nightly 87.0a1 (2021-02-03) (64-bit)
  • Operating system and its version: Ubuntu 20.10 and macOS 11.2 Big Sur (reproduced on both)
  • PDF.js version: Whatever is currently shipping with Firefox Nightly (I don't recall how to tell)
  • Is a browser extension: I'm using the built-in version that comes with Firefox.

Steps to reproduce the problem:

  1. View the provided PDF (which is a single extremely-tall page; Ubiquiti seems to do this for their guides for some reason)
  2. Try to scroll to the end.

What is the expected behavior?
You should see graphical content all the way to the end of the document.

What went wrong?
About 2/3 of the way through the document, the graphical content is abruptly clipped, and the rest of the document is just blank.
Screenshot of where the content gets clipped (rendering is entirely blank after this point)

@calixteman
Copy link
Contributor

I reproduce in firefox nightly on master (depends of the zoom level).
But I don't in chrome (using local server too).

@calixteman
Copy link
Contributor

So it's ok with zoom at 121% (width=387px, height = 16335px) and it isn't at 122% (width = 390px, height = 16490px).
So I'd say that something is wrong when height is greater than 16384px but I don't find anything here:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas#maximum_canvas_size

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