From: sbarman Date: Tue, 21 Jun 2011 03:45:29 +0000 (-0700) Subject: working implementation of png and tiff predictors X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=dbaf83d53f1d487b630c670c8e1ff0f343b9e090;p=pdf.js.git working implementation of png and tiff predictors --- diff --git a/pdf.js b/pdf.js index 96c0c54..7a38b97 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");