Merge pull request #18726 from calixteman/issue18058
Consume any pending path before drawing an annotation
This commit is contained in:
commit
0ac7f294cd
@ -2701,9 +2701,12 @@ class CanvasGraphics {
|
|||||||
} else {
|
} else {
|
||||||
resetCtxToDefault(this.ctx);
|
resetCtxToDefault(this.ctx);
|
||||||
|
|
||||||
|
// Consume a potential path before clipping.
|
||||||
|
this.endPath();
|
||||||
|
|
||||||
this.ctx.rect(rect[0], rect[1], width, height);
|
this.ctx.rect(rect[0], rect[1], width, height);
|
||||||
this.ctx.clip();
|
this.ctx.clip();
|
||||||
this.endPath();
|
this.ctx.beginPath();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
1
test/pdfs/issue18058.pdf.link
Normal file
1
test/pdfs/issue18058.pdf.link
Normal file
@ -0,0 +1 @@
|
|||||||
|
https://github.com/mozilla/pdf.js/files/15269193/file.pdf
|
||||||
@ -10474,5 +10474,13 @@
|
|||||||
"pageIndex": 0
|
"pageIndex": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "issue18058",
|
||||||
|
"file": "pdfs/issue18058.pdf",
|
||||||
|
"md5": "da8fcdf25c83ecb2d4be315be5affc3c",
|
||||||
|
"rounds": 1,
|
||||||
|
"link": true,
|
||||||
|
"type": "eq"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user