|
|
@ -228,14 +228,14 @@ var PDFImage = (function PDFImageClosure() { |
|
|
|
|
|
|
|
|
|
|
|
PDFImage.prototype = { |
|
|
|
PDFImage.prototype = { |
|
|
|
get drawWidth() { |
|
|
|
get drawWidth() { |
|
|
|
if (!this.smask) |
|
|
|
return Math.max(this.width, |
|
|
|
return this.width; |
|
|
|
this.smask && this.smask.width || 0, |
|
|
|
return Math.max(this.width, this.smask.width); |
|
|
|
this.mask && this.mask.width || 0); |
|
|
|
}, |
|
|
|
}, |
|
|
|
get drawHeight() { |
|
|
|
get drawHeight() { |
|
|
|
if (!this.smask) |
|
|
|
return Math.max(this.height, |
|
|
|
return this.height; |
|
|
|
this.smask && this.smask.height || 0, |
|
|
|
return Math.max(this.height, this.smask.height); |
|
|
|
this.mask && this.mask.height || 0); |
|
|
|
}, |
|
|
|
}, |
|
|
|
decodeBuffer: function PDFImage_decodeBuffer(buffer) { |
|
|
|
decodeBuffer: function PDFImage_decodeBuffer(buffer) { |
|
|
|
var bpc = this.bpc; |
|
|
|
var bpc = this.bpc; |
|
|
|