Browse Source

Fixing DescendantFonts object fetching (#600)

notmasteryet 14 years ago committed by Julian Viereck
parent
commit
aa98632b0b
  1. 2
      pdf.js
  2. BIN
      test/pdfs/Test-plusminus.pdf
  3. 5
      test/test_manifest.json

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

Binary file not shown.

5
test/test_manifest.json

@ -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…
Cancel
Save