FlateStream wants a .dict member for duck typing

This commit is contained in:
Chris Jones 2011-06-03 22:58:06 -05:00
parent 2f8d80677b
commit fadbb1b5e7
2 changed files with 2 additions and 1 deletions

1
pdf.js
View File

@ -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();

View File

@ -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) {