1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Skip any whitespace after the first object in linearized PDFs (issue 17665)

This way the code is now consistent with the non-linearized branch in the `PDFDocument.startXRef` getter.
This commit is contained in:
Jonas Jenwald 2024-02-12 15:31:08 +01:00
parent eb5e6e68d6
commit 37e98e39f6
4 changed files with 30 additions and 1 deletions

View file

@ -880,6 +880,9 @@ class WorkerMessageHandler {
.ensureXRef("trailer")
.then(trailer => trailer.get("Prev"));
});
handler.on("GetStartXRefPos", function (data) {
return pdfManager.ensureDoc("startXRef");
});
handler.on("GetAnnotArray", function (data) {
return pdfManager.getPage(data.pageIndex).then(function (page) {
return page.annotations.map(a => a.toString());