]> git.parisson.com Git - pdf.js.git/commitdiff
Fixing properties.widths is null issue; fips197 test file
authornotmasteryet <async.processingjs@yahoo.com>
Thu, 15 Sep 2011 02:29:32 +0000 (21:29 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Thu, 15 Sep 2011 02:29:32 +0000 (21:29 -0500)
pdf.js
test/pdfs/fips197.pdf.link [new file with mode: 0644]
test/test_manifest.json

diff --git a/pdf.js b/pdf.js
index 7514f4d96accaaf69aa79b3ff546d16f7c497a5a..640cd637d7f192f78a3443a605e9de7877f3baba 100644 (file)
--- 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 (file)
index 0000000..815eb1d
--- /dev/null
@@ -0,0 +1 @@
+http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf
index 1155195cb1f512879a937521592b9446cc1e6f2d..7893faa187583f2b2821b940fd8217901d551d7f 100644 (file)
        "link": true,
        "rounds": 1,
        "type": "eq"
+    },
+    {  "id": "fips197",
+       "file": "pdfs/fips197.pdf",
+       "link": true,
+       "rounds": 1,
+       "type": "load"
     }
 ]