diff --git a/src/core/evaluator.js b/src/core/evaluator.js index 226524704..face5b2e7 100644 --- a/src/core/evaluator.js +++ b/src/core/evaluator.js @@ -527,7 +527,11 @@ class PartialEvaluator { operatorList.addOp(OPS.beginGroup, [groupOptions]); } - operatorList.addOp(OPS.paintFormXObjectBegin, [matrix, bbox]); + // If it's a group, a new canvas will be created that is the size of the + // bounding box and translated to the correct position so we don't need to + // apply the bounding box to it. + const args = group ? [matrix, null] : [matrix, bbox]; + operatorList.addOp(OPS.paintFormXObjectBegin, args); return this.getOperatorList({ stream: xobj, diff --git a/test/test_manifest.json b/test/test_manifest.json index 836612f10..6cd805de4 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -5922,7 +5922,7 @@ "link": false, "rounds": 1, "lastPage": 1, - "type": "load" + "type": "eq" }, { "id": "zero_descent", "file": "pdfs/zero_descent.pdf",