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:
commit
b0d58efb6a
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user