From 7fa9b5827a82eafd3b03b9fed5332c287f2ab3d3 Mon Sep 17 00:00:00 2001 From: fixplz Date: Sat, 3 Dec 2011 01:55:59 +0200 Subject: [PATCH] Avoid skipping over tag in startxref search --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index 9c9be92..3c09819 100644 --- a/src/core.js +++ b/src/core.js @@ -384,7 +384,7 @@ var PDFDocModel = (function pdfDoc() { // Find startxref at the end of the file. var found = false, pos = stream.end; while(!found && pos > 0) { - pos -= 1024; + pos -= 1024 - 9; if (pos < 0) pos = 0; stream.pos = pos; -- 2.39.5