working implementation of png and tiff predictors

This commit is contained in:
sbarman 2011-06-20 20:45:29 -07:00
parent 3b38313b7a
commit 7a3cdcdd06

5
pdf.js
View File

@ -539,8 +539,9 @@ var JpegStream = (function() {
} }
constructor.prototype = { constructor.prototype = {
// Needed to pass IsStream test
getChar: function() { getChar: function() {
}, },
getImage: function() { getImage: function() {
return this.domImage; return this.domImage;
@ -3022,7 +3023,7 @@ var CanvasGraphics = (function() {
var smask = image.dict.get("SMask"); var smask = image.dict.get("SMask");
smask = xref.fetchIfRef(smask); smask = xref.fetchIfRef(smask);
if (smask) { if (IsStream(smask)) {
if (inline) if (inline)
error("cannot combine smask and inlining"); error("cannot combine smask and inlining");