-
Notifications
You must be signed in to change notification settings - Fork 10k
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
stamps are not rendered correctly #14105
Comments
Interestingly, if you skip the regular operatorList[1] and only render the Annotations this actually works correctly! [1] By replacing all of Lines 346 to 355 in 2822ba4
return opList; line.
|
I think we can easily fix this in using the |
That'd seem like a work-around, rather than a "real" fix, and it seems quite important (to me at least) that we figure out why it happens since this does suggest something being wrong w.r.t. resetting the canvas-state before rendering Annotations. Note that these documents should obviously render correctly even if no separate AnnotationLayer is actually being used. |
The last commands on the page are:
So the clip region is very small ( I think that a correct fix would be to restore (in |
…#14105) - each annotation must be rendered independently of the others. So after having rendered each annotation, the canvas states are reset in order to have something clean to render the next one.
…#14105) - each annotation must be rendered independently of the others. So after having rendered each annotation, the canvas states are reset in order to have something clean to render the next one.
Reset all the canvas states after rendering each annotations (#14105)
…#14105) - each annotation must be rendered independently of the others. So after having rendered each annotation, the canvas states are reset in order to have something clean to render the next one.
PDF file:
Stamp_Problem.pdf
Configuration:
Steps to reproduce the problem:
Open the attached pdf in a viewer.
If you open the pdf with Acrobat or with integrated Chrome PDF Viewer etc. it looks like in screenshot 1.
If you open it with pdf-js in Chrome, Firefox, Edge or use the integrated PDFViewer of Firefox it looks like screenshot 2.
expected behavior:
The stamps are rendered on top of the table and shown correctly
What went wrong:
the stamps are only visible on top of the table lines
The text was updated successfully, but these errors were encountered: