mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
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
1 changed files with 5 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue