mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Always parse the entire startXRefQueue
in XRef.readXRef
(issue 15833)
Previously we'd abort all parsing if an Error was encountered, despite the fact that multiple `startXRefQueue`-entries may be available and that continued parsing could thus eventually be able to find usable data. Note that in the referenced PDF document the `startxref`-operator, at the end of the file, points to a position in the middle of an arbitrary `stream` which is why things break.
This commit is contained in:
parent
8587ce6afd
commit
26135b0313
3 changed files with 19 additions and 12 deletions
1
test/pdfs/issue15833.pdf.link
Normal file
1
test/pdfs/issue15833.pdf.link
Normal file
|
@ -0,0 +1 @@
|
|||
https://github.com/mozilla/pdf.js/files/10236962/issue15833.pdf
|
|
@ -3522,6 +3522,14 @@
|
|||
"37R": false
|
||||
}
|
||||
},
|
||||
{ "id": "issue15833",
|
||||
"file": "pdfs/issue15833.pdf",
|
||||
"md5": "9562d027b980ea2779dcfb1669f9cf7e",
|
||||
"link": true,
|
||||
"rounds": 1,
|
||||
"lastPage": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "issue11242",
|
||||
"file": "pdfs/issue11242_reduced.pdf",
|
||||
"md5": "ba50b6ee537f3e815ccfe0c99e598e05",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue