1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

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) { function constructor(stream) {
this.stream = stream; this.stream = stream;
this.dict = stream.dict;
this.eof = true; this.eof = true;
var cmf = stream.getByte(); var cmf = stream.getByte();
var flg = stream.getByte(); var flg = stream.getByte();

View file

@ -40,7 +40,7 @@ function load() {
canvas.mozOpaque = true; canvas.mozOpaque = true;
pageDisplay = document.getElementById("pageNumber"); pageDisplay = document.getElementById("pageNumber");
infoDisplay = document.getElementById("info"); infoDisplay = document.getElementById("info");
open("uncompressed.tracemonkey-pldi-09.pdf"); open("compressed.tracemonkey-pldi-09.pdf");
} }
function open(url) { function open(url) {