1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-23 08:38:06 +02:00

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.
var found = false, pos = stream.end;
while(!found && pos > 0) {
pos -= 1024;
pos -= 1024 - 9;
if (pos < 0)
pos = 0;
stream.pos = pos;