Merge pull request #14241 from brendandahl/group-bbox-matrix

Don't double apply a group xobject's bbox.
This commit is contained in:
Brendan Dahl 2021-11-05 20:39:02 -07:00 committed by GitHub
commit 3b5a463357
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -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,

View File

@ -5922,7 +5922,7 @@
"link": false,
"rounds": 1,
"lastPage": 1,
"type": "load"
"type": "eq"
},
{ "id": "zero_descent",
"file": "pdfs/zero_descent.pdf",