mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Attempt to fallback to a default font, for non-available ones, in more cases (issue 16432)
This essentially extends PR 11218 to also apply when looking up the final font-reference, via the XRef-table, fails because the font isn't available. This patch also changes `PartialEvaluator.fallbackFontDict` to simply use "Helvetica" as the default font-name, since that seems generally reasonable given the now existing font-substitution code.
This commit is contained in:
parent
5ae353cf4d
commit
bfb374dbf6
3 changed files with 29 additions and 27 deletions
1
test/pdfs/issue16432.pdf.link
Normal file
1
test/pdfs/issue16432.pdf.link
Normal file
|
@ -0,0 +1 @@
|
|||
https://github.com/mozilla/pdf.js/files/11493613/inputFields-Flattened-Output.pdf
|
|
@ -50,6 +50,14 @@
|
|||
"lastPage": 3,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "issue16432",
|
||||
"file": "pdfs/issue16432.pdf",
|
||||
"md5": "b67b0324c307d8af43d11b0edec88e3e",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"lastPage": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "tracemonkey-fbf",
|
||||
"file": "pdfs/tracemonkey.pdf",
|
||||
"md5": "9a192d8b1a7dc652a19835f6f08098bd",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue