mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Gracefully handle annotation parsing errors in Page.getOperatorList
(issue 11871)
This should ensure that a page will always render successfully, even if there's errors during the Annotation fetching/parsing. Additionally the `OperatorList.addOpList` method is also adjusted to ignore invalid data, to make it slightly more robust.
This commit is contained in:
parent
2711f4bc8c
commit
4aabd063fc
4 changed files with 24 additions and 6 deletions
1
test/pdfs/issue11871.pdf.link
Normal file
1
test/pdfs/issue11871.pdf.link
Normal file
|
@ -0,0 +1 @@
|
|||
https://github.com/mozilla/pdf.js/files/4575091/bugdoc.pdf
|
|
@ -1134,6 +1134,15 @@
|
|||
"link": true,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "issue11871",
|
||||
"file": "pdfs/issue11871.pdf",
|
||||
"md5": "9c533eacd0ca892df4191360848668a2",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"firstPage": 2,
|
||||
"lastPage": 2,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "bug1252420",
|
||||
"file": "pdfs/bug1252420.pdf",
|
||||
"md5": "f21c911b9b655972b06ef782a1fa6a17",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue