-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Invalid annotation coordinates #7115
Comments
Unfortunately this issue does not contain enough information to reproduce it. |
I have a theory about the cause of this issue, and have a tentative patch for it, but you need to provide the PDF file in question in order for me to test that theory. |
I have a problem, the pdf has logo of customer and i can't publish it, may i send it privately ? |
Sure, there's an email address in my GitHub profile. |
Let's keep 4-information-requested attached to follow up -- the project contributors cannot address issue as it's stated. |
Okay, but in the PR above we already have a minimal testcase because the file was sent privately. |
annotation coordinates ( item.rect ) , instead of being an array of 4 numbers, is an array of 4 objects, each with 2 fields : gen ( always 0 ) and num ( a progressive index )
the function :
var rect = PDFJS.Util.normalizeRect(
viewport.convertToViewportRectangle(item.rect));
converts these 4 objects in NaN ( invalid numbers )
The text was updated successfully, but these errors were encountered: