Merge pull request #6814 from Snuffleupagus/beginAnnotations-baseTransform
Ensure that the `baseTransform` is applied when rendering annotations
This commit is contained in:
commit
edf8ccc1d8
@ -1839,6 +1839,10 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||||||
beginAnnotations: function CanvasGraphics_beginAnnotations() {
|
beginAnnotations: function CanvasGraphics_beginAnnotations() {
|
||||||
this.save();
|
this.save();
|
||||||
this.current = new CanvasExtraState();
|
this.current = new CanvasExtraState();
|
||||||
|
|
||||||
|
if (this.baseTransform) {
|
||||||
|
this.ctx.setTransform.apply(this.ctx, this.baseTransform);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
endAnnotations: function CanvasGraphics_endAnnotations() {
|
endAnnotations: function CanvasGraphics_endAnnotations() {
|
||||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -11,6 +11,7 @@
|
|||||||
!issue2391-2.pdf
|
!issue2391-2.pdf
|
||||||
!issue4665.pdf
|
!issue4665.pdf
|
||||||
!issue5801.pdf
|
!issue5801.pdf
|
||||||
|
!issue5946.pdf
|
||||||
!issue5972.pdf
|
!issue5972.pdf
|
||||||
!issue5874.pdf
|
!issue5874.pdf
|
||||||
!filled-background.pdf
|
!filled-background.pdf
|
||||||
|
BIN
test/pdfs/issue5946.pdf
Normal file
BIN
test/pdfs/issue5946.pdf
Normal file
Binary file not shown.
@ -637,6 +637,13 @@
|
|||||||
"link": false,
|
"link": false,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "issue5946",
|
||||||
|
"file": "pdfs/issue5946.pdf",
|
||||||
|
"md5": "1217a3c8e2ee4ceb96d85a2f27e437b4",
|
||||||
|
"rounds": 1,
|
||||||
|
"link": false,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{ "id": "issue5954",
|
{ "id": "issue5954",
|
||||||
"file": "pdfs/issue5954.pdf",
|
"file": "pdfs/issue5954.pdf",
|
||||||
"md5": "4f60ec0d9bbeec845b681242b8982361",
|
"md5": "4f60ec0d9bbeec845b681242b8982361",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user