mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
When parsing corrupt documents, avoid inserting obviously broken data in the XRef-table (issue 13783)
In cases where even the very *first* attempt at reading from an object will throw, simply ignoring such objects will help improve rendering of *some* corrupt documents. Note that this will lead to more parsing in some cases, but considering that this only applies to *corrupt* documents that shouldn't be a big deal.
This commit is contained in:
parent
51f0a81085
commit
b82c802dff
5 changed files with 51 additions and 10 deletions
1
test/pdfs/issue13783.pdf.link
Normal file
1
test/pdfs/issue13783.pdf.link
Normal file
|
@ -0,0 +1 @@
|
|||
https://github.com/mozilla/pdf.js/files/6869824/TimeTravel.pdf
|
|
@ -1382,6 +1382,15 @@
|
|||
"enableXfa": true,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "issue13783",
|
||||
"file": "pdfs/issue13783.pdf",
|
||||
"md5": "6958d827afa566efbd82f53271ea5cd6",
|
||||
"link": true,
|
||||
"rounds": 1,
|
||||
"firstPage": 7,
|
||||
"lastPage": 7,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "issue9262",
|
||||
"file": "pdfs/issue9262_reduced.pdf",
|
||||
"md5": "5347ce2d7b3866625c22e115fd90e0de",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue