]> git.parisson.com Git - pdf.js.git/commitdiff
FlateStream wants a .dict member for duck typing
authorChris Jones <jones.chris.g@gmail.com>
Sat, 4 Jun 2011 03:58:06 +0000 (22:58 -0500)
committerChris Jones <jones.chris.g@gmail.com>
Sat, 4 Jun 2011 03:58:06 +0000 (22:58 -0500)
pdf.js
test.html

diff --git a/pdf.js b/pdf.js
index acb7c92828644bc67fa7bb2ec89241932c056ca5..0f0bfe397b2b082b426abe5f38e62b28f92c4e26 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -735,6 +735,7 @@ var FlateStream = (function() {
 
     function constructor(stream) {
         this.stream = stream;
+        this.dict = stream.dict;
         this.eof = true;
         var cmf = stream.getByte();
         var flg = stream.getByte();
index 10a35e16359074aa95a454d965a725d3cf488d4e..8513529fef2baffb9e2b94c7679f6918399adcb5 100644 (file)
--- a/test.html
+++ b/test.html
@@ -40,7 +40,7 @@ function load() {
     canvas.mozOpaque = true;
     pageDisplay = document.getElementById("pageNumber");
     infoDisplay = document.getElementById("info");
-    open("uncompressed.tracemonkey-pldi-09.pdf");
+    open("compressed.tracemonkey-pldi-09.pdf");
 }
 
 function open(url) {