mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Fix for issue #1796
This commit is contained in:
parent
1c1447e599
commit
dd14b3051e
2 changed files with 44 additions and 15 deletions
|
@ -226,8 +226,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
insertDependency([objId]);
|
||||
args = [objId, w, h];
|
||||
|
||||
var softMask = dict.get('SMask', 'IM') || false;
|
||||
if (!softMask && image instanceof JpegStream &&
|
||||
var softMask = dict.get('SMask', 'SM') || false;
|
||||
var mask = dict.get('Mask') || false;
|
||||
|
||||
if (!softMask && !mask && image instanceof JpegStream &&
|
||||
image.isNativelySupported(xref, resources)) {
|
||||
// These JPEGs don't need any more processing so we can just send it.
|
||||
fn = 'paintJpegXObject';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue