mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
XFA - An image can be a stream in the pdf (bug 1718521) - hrefs can be found in catalog > Names > XFAImages
This commit is contained in:
parent
fcd4c8151c
commit
5cdee80c8e
10 changed files with 128 additions and 49 deletions
|
@ -191,12 +191,15 @@ class WorkerMessageHandler {
|
|||
if (isPureXfa) {
|
||||
const task = new WorkerTask("loadXfaFonts");
|
||||
startWorkerTask(task);
|
||||
await pdfManager
|
||||
.loadXfaFonts(handler, task)
|
||||
.catch(reason => {
|
||||
// Ignore errors, to allow the document to load.
|
||||
})
|
||||
.then(() => finishWorkerTask(task));
|
||||
await Promise.all([
|
||||
pdfManager
|
||||
.loadXfaFonts(handler, task)
|
||||
.catch(reason => {
|
||||
// Ignore errors, to allow the document to load.
|
||||
})
|
||||
.then(() => finishWorkerTask(task)),
|
||||
pdfManager.loadXfaImages(),
|
||||
]);
|
||||
}
|
||||
|
||||
const [numPages, fingerprints] = await Promise.all([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue