Merge pull request #18166 from Snuffleupagus/bug-1898802
Prevent XRef errors from breaking font loading (bug 1898802)
This commit is contained in:
commit
b78480a375
@ -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)) {
|
||||
|
||||
1
test/pdfs/bug1898802.pdf.link
Normal file
1
test/pdfs/bug1898802.pdf.link
Normal file
@ -0,0 +1 @@
|
||||
https://bugzilla.mozilla.org/attachment.cgi?id=9403877
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user