diff --git a/src/core/evaluator.js b/src/core/evaluator.js index 8a822954a..1ed1c3749 100644 --- a/src/core/evaluator.js +++ b/src/core/evaluator.js @@ -1261,7 +1261,11 @@ class PartialEvaluator { return this.fontCache.get(fontRef); } - font = this.xref.fetchIfRef(fontRef); + try { + font = this.xref.fetchIfRef(fontRef); + } catch (ex) { + warn(`loadFont - lookup failed: "${ex}".`); + } } if (!(font instanceof Dict)) { diff --git a/test/pdfs/bug1898802.pdf.link b/test/pdfs/bug1898802.pdf.link new file mode 100644 index 000000000..791183ee2 --- /dev/null +++ b/test/pdfs/bug1898802.pdf.link @@ -0,0 +1 @@ +https://bugzilla.mozilla.org/attachment.cgi?id=9403877 diff --git a/test/test_manifest.json b/test/test_manifest.json index eb6aceb61..0d9a57e29 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -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",