1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Prevent XRef errors from breaking font loading (bug 1898802)

Note that the referenced file is trivially corrupt, since it contains *two* PDF documents placed in the same file which doesn't make sense (and isn't how a PDF document should be updated).
However it's still a good idea to ensure that `loadFont` is able to handle errors when resolving References, since that allows us to invoke the existing fallback font handling.
This commit is contained in:
Jonas Jenwald 2024-05-24 21:29:46 +02:00
parent 18a7bd60f7
commit cfcb700ecc
3 changed files with 15 additions and 1 deletions

View file

@ -0,0 +1 @@
https://bugzilla.mozilla.org/attachment.cgi?id=9403877

View file

@ -5447,6 +5447,15 @@
"lastPage": 1,
"type": "eq"
},
{
"id": "bug1898802",
"file": "pdfs/bug1898802.pdf",
"md5": "65c3af306253faa8967982812aff523e",
"rounds": 1,
"link": true,
"lastPage": 1,
"type": "eq"
},
{
"id": "issue4890",
"file": "pdfs/issue4890.pdf",