Fixing DescendantFonts object fetching (#600)
This commit is contained in:
parent
1b69ca80a6
commit
aa98632b0b
2
pdf.js
2
pdf.js
@ -5190,7 +5190,7 @@ var PartialEvaluator = (function partialEvaluator() {
|
|||||||
if (isRef(df))
|
if (isRef(df))
|
||||||
df = xref.fetch(df);
|
df = xref.fetch(df);
|
||||||
|
|
||||||
dict = xref.fetch(isRef(df) ? df : df[0]);
|
dict = xref.fetchIfRef(isRef(df) ? df : df[0]);
|
||||||
|
|
||||||
type = dict.get('Subtype');
|
type = dict.get('Subtype');
|
||||||
assertWellFormed(isName(type), 'invalid font Subtype');
|
assertWellFormed(isName(type), 'invalid font Subtype');
|
||||||
|
BIN
test/pdfs/Test-plusminus.pdf
Normal file
BIN
test/pdfs/Test-plusminus.pdf
Normal file
Binary file not shown.
@ -43,6 +43,11 @@
|
|||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "plusminus",
|
||||||
|
"file": "pdfs/Test-plusminus.pdf",
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{ "id": "openoffice-pdf",
|
{ "id": "openoffice-pdf",
|
||||||
"file": "pdfs/DiwanProfile.pdf",
|
"file": "pdfs/DiwanProfile.pdf",
|
||||||
"link": true,
|
"link": true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user