1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Merge pull request #14067 from calixteman/1732344

Don't save anything in XFA entry if no XFA! (bug 1732344)
This commit is contained in:
Brendan Dahl 2021-09-23 15:07:00 -07:00 committed by GitHub
commit d370a281c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 60 additions and 32 deletions

View file

@ -1015,6 +1015,7 @@ const PDFViewerApplication = {
} catch (reason) {
// When the PDF document isn't ready, or the PDF file is still
// downloading, simply fallback to a "regular" download.
console.error(`Error when saving the document: ${reason.message}`);
await this.download({ sourceEventType });
} finally {
await this.pdfScriptingManager.dispatchDidSave();