Avoid skipping over tag in startxref search

This commit is contained in:
fixplz 2011-12-03 01:55:59 +02:00
parent b1ed459443
commit 7fa9b5827a

View File

@ -384,7 +384,7 @@ var PDFDocModel = (function pdfDoc() {
// Find startxref at the end of the file. // Find startxref at the end of the file.
var found = false, pos = stream.end; var found = false, pos = stream.end;
while(!found && pos > 0) { while(!found && pos > 0) {
pos -= 1024; pos -= 1024 - 9;
if (pos < 0) if (pos < 0)
pos = 0; pos = 0;
stream.pos = pos; stream.pos = pos;