Use the position of the previous xref stream if any when saving a pdf (bug 1823296)

This commit is contained in:
Calixte Denizet 2023-03-21 18:14:43 +01:00
parent 3903391f3c
commit 2d0f30a67c
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);
},
});
}
}