diff --git a/src/core.js b/src/core.js index 9c9be921..3c098195 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;