Merge pull request #16188 from calixteman/bug1823296

Use the position of the previous xref stream if any when saving a pdf (bug 1823296)
This commit is contained in:
calixteman 2023-03-21 21:21:49 +01:00 committed by GitHub
commit 8bfebf1c24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 62 additions and 1 deletions

View file

@ -777,6 +777,11 @@ class PDFDocumentProxy {
return this._transport.getXFADatasets();
},
});
Object.defineProperty(this, "getXRefPrevValue", {
value: () => {
return this._transport.getXRefPrevValue();
},
});
}
}
@ -2397,6 +2402,11 @@ class WorkerTransport {
return this.messageHandler.sendWithPromise("GetXFADatasets", null);
},
});
Object.defineProperty(this, "getXRefPrevValue", {
value: () => {
return this.messageHandler.sendWithPromise("GetXRefPrevValue", null);
},
});
}
}