Revert "XFA - An image can be a stream in the pdf (bug 1718521)"

This commit is contained in:
calixteman 2021-07-05 12:47:14 +02:00 committed by GitHub
parent b370d4714f
commit 783cbc1793
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 49 additions and 127 deletions

View file

@ -191,15 +191,12 @@ class WorkerMessageHandler {
if (isPureXfa) {
const task = new WorkerTask("loadXfaFonts");
startWorkerTask(task);
await Promise.all([
pdfManager
.loadXfaFonts(handler, task)
.catch(reason => {
// Ignore errors, to allow the document to load.
})
.then(() => finishWorkerTask(task)),
pdfManager.loadXfaImages(),
]);
await pdfManager
.loadXfaFonts(handler, task)
.catch(reason => {
// Ignore errors, to allow the document to load.
})
.then(() => finishWorkerTask(task));
}
const [numPages, fingerprints] = await Promise.all([