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

Highlight annotations are rendered even with no QuadPoints (which is required) #12506

Closed
calixteman opened this issue Oct 21, 2020 · 0 comments
Closed

Comments

@calixteman
Copy link
Contributor

Attach (recommended) or Link to PDF file here:
plop1.pdf

Some pdf softwares don't remove highlight annotations but make the QuadPoints array empty.
And the Rect for the annotation can be [-32768, -32768, 32768, 32768] so it leads to have a giant div which catches all the mouse events and make the pdf unusable when there are some forms elements.

The issue is visible locally using gulp server but not in using https://mozilla.github.io/pdf.js/web/viewer.html.
In the web viewer in inspecting the html the highlightAnnotation is probably not rendered because of a parsing failure in element style (the transform-origin contains some 3.40282e38px). I don't really understand why there is such a difference...
I can't share the original pdf but the issues appears locally, in the web viewer and in firefox with it.

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

2 participants