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

Invalid annotation coordinates #7115

Closed
atrebbi opened this issue Mar 26, 2016 · 6 comments
Closed

Invalid annotation coordinates #7115

atrebbi opened this issue Mar 26, 2016 · 6 comments

Comments

@atrebbi
Copy link

atrebbi commented Mar 26, 2016

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 )

@Snuffleupagus
Copy link
Collaborator

Unfortunately this issue does not contain enough information to reproduce it.
As the first line of the issue template says, please provide a PDF file that demonstrates the issue!

@Snuffleupagus
Copy link
Collaborator

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.

@atrebbi
Copy link
Author

atrebbi commented Mar 26, 2016

I have a problem, the pdf has logo of customer and i can't publish it, may i send it privately ?

@Snuffleupagus
Copy link
Collaborator

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.

@yurydelendik
Copy link
Contributor

Let's keep 4-information-requested attached to follow up -- the project contributors cannot address issue as it's stated.

@timvandermeij
Copy link
Contributor

Okay, but in the PR above we already have a minimal testcase because the file was sent privately.

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

No branches or pull requests

4 participants