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

XFA - Avoid an exception when looking for a font in a parent node

- it aims to fix issue https://github.com/mozilla/pdf.js/issues/14150;
  - a parent can be null in case the root has been reached, so just add a check.
This commit is contained in:
Calixte Denizet 2021-11-12 16:17:02 +01:00
parent 3a31b7ef0c
commit 5b7e1f5232
3 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1 @@
https://github.com/mozilla/pdf.js/files/7528643/dol4n.pdf

View file

@ -1013,6 +1013,15 @@
"link": true,
"type": "load"
},
{ "id": "xfa_issue14150",
"file": "pdfs/xfa_issue14150.pdf",
"md5": "295b3e513b62945fbba73bce6908344c",
"link": true,
"rounds": 1,
"enableXfa": true,
"lastPage": 1,
"type": "eq"
},
{ "id": "xfa_issue14071",
"file": "pdfs/xfa_issue14071.pdf",
"md5": "7ef09705091602668ce22086c83a90f3",