]> git.parisson.com Git - pdf.js.git/commitdiff
Avoid skipping over tag in startxref search
authorfixplz <gust.tgm@gmail.com>
Fri, 2 Dec 2011 23:55:59 +0000 (01:55 +0200)
committerfixplz <gust.tgm@gmail.com>
Fri, 2 Dec 2011 23:55:59 +0000 (01:55 +0200)
src/core.js

index 9c9be921876db8e45134c84678d48f0f2f959927..3c09819547f9f0cd4ae538e0b18a1ba6998888ae 100644 (file)
@@ -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;