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

Part of page not rendered if group bounding box is placed outside the canvas #3879

Closed
Snuffleupagus opened this issue Nov 2, 2013 · 0 comments · Fixed by #3880
Closed

Part of page not rendered if group bounding box is placed outside the canvas #3879

Snuffleupagus opened this issue Nov 2, 2013 · 0 comments · Fixed by #3880

Comments

@Snuffleupagus
Copy link
Collaborator

After #3798 was merged (checked with git bisect), the following files no longer renders completely:

The relevant error message from the console:

InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable

It turns out that the issue in these files is that some of the bounding boxes are placed entirely outside of the canvas, causing bounds to be undefined since the two regions don't intersect: https://github.com/mozilla/pdf.js/blob/master/src/display/canvas.js#L1510.
An example of the issue (taken from the first file): The bounding box is [798.569357132554, 117.22800148665908, 1031.8493640848396, 267.46800596415994], but the canvas dimensions are [0, 0, 755, 793].

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.

1 participant