Browse Source

FlateStream wants a .dict member for duck typing

Chris Jones 14 years ago
parent
commit
fadbb1b5e7
  1. 1
      pdf.js
  2. 2
      test.html

1
pdf.js

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

2
test.html

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

Loading…
Cancel
Save