mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Ignore non-dictionary nodes when parsing StructTree data (issue 18503)
This commit is contained in:
parent
d3384c0e3c
commit
c4cd405a8f
4 changed files with 192 additions and 0 deletions
|
@ -671,6 +671,9 @@ class StructTreePage {
|
|||
warn("StructTree MAX_DEPTH reached.");
|
||||
return null;
|
||||
}
|
||||
if (!(dict instanceof Dict)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (map.has(dict)) {
|
||||
return map.get(dict);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue