From: Chris Jones Date: Sat, 4 Jun 2011 03:58:06 +0000 (-0500) Subject: FlateStream wants a .dict member for duck typing X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=fadbb1b5e7616e60c9fae640d9eae30c29ef85e5;p=pdf.js.git FlateStream wants a .dict member for duck typing --- diff --git a/pdf.js b/pdf.js index acb7c92..0f0bfe3 100644 --- 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(); diff --git a/test.html b/test.html index 10a35e1..8513529 100644 --- 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) {