Use await
consistently in the PartialEvaluator.buildFormXObject
method
This commit is contained in:
parent
bba831821d
commit
1cc83c4fdc
@ -526,23 +526,22 @@ class PartialEvaluator {
|
|||||||
const args = group ? [matrix, null] : [matrix, bbox];
|
const args = group ? [matrix, null] : [matrix, bbox];
|
||||||
operatorList.addOp(OPS.paintFormXObjectBegin, args);
|
operatorList.addOp(OPS.paintFormXObjectBegin, args);
|
||||||
|
|
||||||
return this.getOperatorList({
|
await this.getOperatorList({
|
||||||
stream: xobj,
|
stream: xobj,
|
||||||
task,
|
task,
|
||||||
resources: dict.get("Resources") || resources,
|
resources: dict.get("Resources") || resources,
|
||||||
operatorList,
|
operatorList,
|
||||||
initialState,
|
initialState,
|
||||||
}).then(function () {
|
|
||||||
operatorList.addOp(OPS.paintFormXObjectEnd, []);
|
|
||||||
|
|
||||||
if (group) {
|
|
||||||
operatorList.addOp(OPS.endGroup, [groupOptions]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (optionalContent !== undefined) {
|
|
||||||
operatorList.addOp(OPS.endMarkedContent, []);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
operatorList.addOp(OPS.paintFormXObjectEnd, []);
|
||||||
|
|
||||||
|
if (group) {
|
||||||
|
operatorList.addOp(OPS.endGroup, [groupOptions]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (optionalContent !== undefined) {
|
||||||
|
operatorList.addOp(OPS.endMarkedContent, []);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_sendImgData(objId, imgData, cacheGlobally = false) {
|
_sendImgData(objId, imgData, cacheGlobally = false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user