1
0
Fork 0
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:
Jonas Jenwald 2023-05-17 10:19:14 +02:00
parent 5ae353cf4d
commit bfb374dbf6
3 changed files with 29 additions and 27 deletions

View file

@ -0,0 +1 @@
https://github.com/mozilla/pdf.js/files/11493613/inputFields-Flattened-Output.pdf

View file

@ -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",