From 7a3cdcdd06fdd3f41383042bde199939681936f9 Mon Sep 17 00:00:00 2001 From: sbarman Date: Mon, 20 Jun 2011 20:45:29 -0700 Subject: [PATCH] working implementation of png and tiff predictors --- pdf.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pdf.js b/pdf.js index 96c0c5438..7a38b9729 100644 --- a/pdf.js +++ b/pdf.js @@ -539,8 +539,9 @@ var JpegStream = (function() { } constructor.prototype = { + // Needed to pass IsStream test getChar: function() { - }, + }, getImage: function() { return this.domImage; @@ -3022,7 +3023,7 @@ var CanvasGraphics = (function() { var smask = image.dict.get("SMask"); smask = xref.fetchIfRef(smask); - if (smask) { + if (IsStream(smask)) { if (inline) error("cannot combine smask and inlining");