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"
|
"getContentStream"
|
||||||
);
|
);
|
||||||
const resourcesPromise = this.loadResources([
|
const resourcesPromise = this.loadResources([
|
||||||
"ExtGState",
|
|
||||||
"ColorSpace",
|
"ColorSpace",
|
||||||
|
"ExtGState",
|
||||||
|
"Font",
|
||||||
"Pattern",
|
"Pattern",
|
||||||
|
"Properties",
|
||||||
"Shading",
|
"Shading",
|
||||||
"XObject",
|
"XObject",
|
||||||
"Font",
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const partialEvaluator = new PartialEvaluator({
|
const partialEvaluator = new PartialEvaluator({
|
||||||
@ -425,8 +426,9 @@ class Page {
|
|||||||
);
|
);
|
||||||
const resourcesPromise = this.loadResources([
|
const resourcesPromise = this.loadResources([
|
||||||
"ExtGState",
|
"ExtGState",
|
||||||
"XObject",
|
|
||||||
"Font",
|
"Font",
|
||||||
|
"Properties",
|
||||||
|
"XObject",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const dataPromises = Promise.all([contentStreamPromise, resourcesPromise]);
|
const dataPromises = Promise.all([contentStreamPromise, resourcesPromise]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user