mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-09 23:04:02 +02:00
Fix downloading the current pdf
This commit is contained in:
parent
4d0709c174
commit
dd52343d58
@ -1316,9 +1316,10 @@ const PDFViewerApplication = {
|
||||
const { classList } = this.appConfig.appContainer;
|
||||
classList.add("wait");
|
||||
|
||||
const structuralChanges = this.pdfThumbnailViewer?.getStructuralChanges();
|
||||
if (structuralChanges) {
|
||||
await this.onSavePages({ data: structuralChanges });
|
||||
if (this.pdfThumbnailViewer?.hasStructuralChanges()) {
|
||||
await this.onSavePages({
|
||||
data: this.pdfThumbnailViewer.getStructuralChanges(),
|
||||
});
|
||||
} else {
|
||||
await (this.pdfDocument?.annotationStorage.size > 0
|
||||
? this.save()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user