mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +02:00
Revert "XFA - An image can be a stream in the pdf (bug 1718521)"
This commit is contained in:
parent
b370d4714f
commit
783cbc1793
10 changed files with 49 additions and 127 deletions
|
@ -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([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue