From e512000877759a429c36bd7159ca895e6fca03bb Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Wed, 14 Sep 2011 21:29:32 -0500 Subject: [PATCH] Fixing properties.widths is null issue; fips197 test file --- pdf.js | 2 +- test/pdfs/fips197.pdf.link | 1 + test/test_manifest.json | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 test/pdfs/fips197.pdf.link diff --git a/pdf.js b/pdf.js index 7514f4d96..640cd637d 100644 --- a/pdf.js +++ b/pdf.js @@ -4506,7 +4506,7 @@ var PartialEvaluator = (function() { type: type.name, encoding: map, differences: [], - widths: widths, + widths: widths || {}, defaultWidth: defaultWidth, firstChar: 0, lastChar: 256 diff --git a/test/pdfs/fips197.pdf.link b/test/pdfs/fips197.pdf.link new file mode 100644 index 000000000..815eb1d48 --- /dev/null +++ b/test/pdfs/fips197.pdf.link @@ -0,0 +1 @@ +http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf diff --git a/test/test_manifest.json b/test/test_manifest.json index 1155195cb..7893faa18 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -109,5 +109,11 @@ "link": true, "rounds": 1, "type": "eq" + }, + { "id": "fips197", + "file": "pdfs/fips197.pdf", + "link": true, + "rounds": 1, + "type": "load" } ]