Fixing DescendantFonts object fetching (#600)
This commit is contained in:
parent
9733a2b0f7
commit
0301b530a9
2
pdf.js
2
pdf.js
@ -4757,7 +4757,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…
Reference in New Issue
Block a user