-
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
[Tracking] SMask regressions from PR 4161 #7011
Comments
The problem with all of the PDF files in the referenced issues/bugs is that they are fairly complex, thus making debugging much more difficult. |
It does not. But I have a fix for this particular case: diff --git a/src/display/canvas.js b/src/display/canvas.js
index 5df5a73..4a04acc 100644
--- a/src/display/canvas.js
+++ b/src/display/canvas.js
@@ -869,6 +869,11 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
},
endDrawing: function CanvasGraphics_endDrawing() {
+ // Finishing all opened operations such as SMask group painting.
+ if (this.current.activeSMask !== null) {
+ this.endSMaskGroup();
+ }
+
this.ctx.restore();
if (this.transparentCanvas) { |
#6967 is a weird one and looks like PDF.js is doing a right thing (?): mask is painted outside of page and when applied it hides the content painted on the page/ |
Bug 852992 contains two different issues, addressing the regression only |
Let's keep Bug 852992 as unaddressed since http://martin.von-gagern.net/publications/2008-diploma/Diplomarbeit.pdf p.74 shows similar problem as Issue 6967 (btw, Max OS X Preview as issue with showing this page too) |
Closing since the mentioned problems are either fixed, won't-fix or have a dedicated issue, so there is no need for this tracking issue anymore. |
This issue is intended to help track various SMask related regressions from PR #4161.
Note: This is a tracking bug, please do not post unrelated comments here!
The text was updated successfully, but these errors were encountered: