Merge pull request #13275 from Snuffleupagus/loadResources-Properties

Ensure that the /Properties, used with optional content, is actually loaded *before* parsing the operatorList/textContent (PR 12095 follow-up)
This commit is contained in:
Tim van der Meij 2021-04-20 21:45:39 +02:00 committed by GitHub
commit b0d58efb6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -318,12 +318,13 @@ class Page {
"getContentStream"
);
const resourcesPromise = this.loadResources([
"ExtGState",
"ColorSpace",
"ExtGState",
"Font",
"Pattern",
"Properties",
"Shading",
"XObject",
"Font",
]);
const partialEvaluator = new PartialEvaluator({
@ -425,8 +426,9 @@ class Page {
);
const resourcesPromise = this.loadResources([
"ExtGState",
"XObject",
"Font",
"Properties",
"XObject",
]);
const dataPromises = Promise.all([contentStreamPromise, resourcesPromise]);