Skip to content
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

Ensure that the baseTransform is applied when rendering annotations #6814

Merged
merged 1 commit into from
Dec 28, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/display/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,10 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
beginAnnotations: function CanvasGraphics_beginAnnotations() {
this.save();
this.current = new CanvasExtraState();

if (this.baseTransform) {
this.ctx.setTransform.apply(this.ctx, this.baseTransform);
}
},

endAnnotations: function CanvasGraphics_endAnnotations() {
Expand Down
1 change: 1 addition & 0 deletions test/pdfs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
!issue2391-2.pdf
!issue4665.pdf
!issue5801.pdf
!issue5946.pdf
!issue5972.pdf
!issue5874.pdf
!filled-background.pdf
Expand Down
Binary file added test/pdfs/issue5946.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions test/test_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,13 @@
"link": false,
"type": "eq"
},
{ "id": "issue5946",
"file": "pdfs/issue5946.pdf",
"md5": "1217a3c8e2ee4ceb96d85a2f27e437b4",
"rounds": 1,
"link": false,
"type": "eq"
},
{ "id": "issue5954",
"file": "pdfs/issue5954.pdf",
"md5": "4f60ec0d9bbeec845b681242b8982361",
Expand Down