]> git.parisson.com Git - pdf.js.git/commitdiff
working implementation of png and tiff predictors
authorsbarman <sbarman@L3CWZ5T.(none)>
Tue, 21 Jun 2011 03:45:29 +0000 (20:45 -0700)
committersbarman <sbarman@L3CWZ5T.(none)>
Tue, 21 Jun 2011 03:45:29 +0000 (20:45 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index 96c0c5438e553e839ae2b7c8397bbbf8ca7cc43e..7a38b9729ccdfc2aeb613c73bf7f11480a7e9413 100644 (file)
--- 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");