From: notmasteryet Date: Thu, 15 Sep 2011 02:29:32 +0000 (-0500) Subject: Fixing properties.widths is null issue; fips197 test file X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e512000877759a429c36bd7159ca895e6fca03bb;p=pdf.js.git Fixing properties.widths is null issue; fips197 test file --- diff --git a/pdf.js b/pdf.js index 7514f4d..640cd63 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 0000000..815eb1d --- /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 1155195..7893faa 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" } ]