Merge pull request #633 from notmasteryet/issue-600

Fixing DescendantFonts object fetching (#600)
This commit is contained in:
Artur Adib 2011-10-08 07:56:08 -07:00
commit a1507893e8
3 changed files with 6 additions and 1 deletions

2
pdf.js
View File

@ -4760,7 +4760,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,