Browse Source

Fixing DescendantFonts object fetching (#600)

notmasteryet 14 years ago
parent
commit
0301b530a9
  1. 2
      pdf.js
  2. BIN
      test/pdfs/Test-plusminus.pdf
  3. 5
      test/test_manifest.json

2
pdf.js

@ -4757,7 +4757,7 @@ var PartialEvaluator = (function partialEvaluator() { @@ -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');

BIN
test/pdfs/Test-plusminus.pdf

Binary file not shown.

5
test/test_manifest.json

@ -43,6 +43,11 @@ @@ -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,

Loading…
Cancel
Save