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:
parent
2f8d80677b
commit
fadbb1b5e7
2 changed files with 2 additions and 1 deletions
1
pdf.js
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();
|
||||||
|
|
|
@ -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…
Add table
Add a link
Reference in a new issue