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:
parent
b1ed459443
commit
7fa9b5827a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue