diff --git a/src/display/canvas.js b/src/display/canvas.js index 2e7df34385401..9cf911ace1fb9 100644 --- a/src/display/canvas.js +++ b/src/display/canvas.js @@ -1112,6 +1112,9 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { if (isPatternFill) { ctx.save(); + if (this.baseTransform) { + ctx.setTransform.apply(ctx, this.baseTransform); + } ctx.fillStyle = fillColor.getPattern(ctx, this); needRestore = true; } diff --git a/test/pdfs/.gitignore b/test/pdfs/.gitignore index 00fa955b9d01d..c2a6733466ccb 100644 --- a/test/pdfs/.gitignore +++ b/test/pdfs/.gitignore @@ -193,6 +193,7 @@ !issue6081.pdf !issue6069.pdf !issue6106.pdf +!issue6296.pdf !bug1001080.pdf !issue6108.pdf !issue6113.pdf diff --git a/test/pdfs/issue6296.pdf b/test/pdfs/issue6296.pdf new file mode 100644 index 0000000000000..703b67e76ed4d Binary files /dev/null and b/test/pdfs/issue6296.pdf differ diff --git a/test/test_manifest.json b/test/test_manifest.json index 88eda0ae5c9a7..7095734f0eb72 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -2561,6 +2561,12 @@ "link": true, "type": "eq" }, + { "id": "issue6296.pdf", + "file": "pdfs/issue6296.pdf", + "md5": "734e191aab1372e6fd7523ca7751fcf0", + "rounds": 1, + "type": "eq" + }, { "id": "issue5549.pdf", "file": "pdfs/issue5549.pdf", "md5": "6c36df6ebc583c9e18aad0ad00d257b8",