1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 06:38:07 +02:00

Remove active smask when restoring the initial canvas state

Fixes #18444.
This commit is contained in:
Calixte Denizet 2024-07-17 14:08:54 +02:00
parent 86eb5ba700
commit 37db3a7143
3 changed files with 12 additions and 0 deletions

View file

@ -1006,6 +1006,7 @@ class CanvasGraphics {
this.restore();
}
this.current.activeSMask = null;
this.ctx.restore();
if (this.transparentCanvas) {

View file

@ -0,0 +1 @@
https://github.com/user-attachments/files/16264442/9.170.1.pdf

View file

@ -10160,5 +10160,15 @@
"firstPage": 2,
"lastPage": 2,
"type": "eq"
},
{
"id": "issue18444",
"file": "pdfs/issue18444.pdf",
"md5": "233b7b72d67133044338a728d52d58a9",
"rounds": 1,
"link": true,
"firstPage": 1,
"lastPage": 1,
"type": "eq"
}
]