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:
commit
d370a281c4
5 changed files with 60 additions and 32 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue