Fixing DescendantFonts object fetching (#600)

This commit is contained in:
notmasteryet 2011-10-07 22:46:01 -05:00
parent 9733a2b0f7
commit 0301b530a9
3 changed files with 6 additions and 1 deletions

2
pdf.js
View File

@ -4757,7 +4757,7 @@ var PartialEvaluator = (function partialEvaluator() {
if (isRef(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');
assertWellFormed(isName(type), 'invalid font Subtype');

Binary file not shown.

View File

@ -43,6 +43,11 @@
"rounds": 1,
"type": "eq"
},
{ "id": "plusminus",
"file": "pdfs/Test-plusminus.pdf",
"rounds": 1,
"type": "eq"
},
{ "id": "openoffice-pdf",
"file": "pdfs/DiwanProfile.pdf",
"link": true,