|
|
@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {})); |
|
|
|
// Use strict in our context only - users might not want it
|
|
|
|
// Use strict in our context only - users might not want it
|
|
|
|
'use strict'; |
|
|
|
'use strict'; |
|
|
|
|
|
|
|
|
|
|
|
var pdfjsVersion = '1.4.79'; |
|
|
|
var pdfjsVersion = '1.4.81'; |
|
|
|
var pdfjsBuild = '9eedfc1'; |
|
|
|
var pdfjsBuild = '8cdb696'; |
|
|
|
|
|
|
|
|
|
|
|
var pdfjsFilePath = |
|
|
|
var pdfjsFilePath = |
|
|
|
typeof document !== 'undefined' && document.currentScript ? |
|
|
|
typeof document !== 'undefined' && document.currentScript ? |
|
|
@ -1615,7 +1615,18 @@ var JpegImage = (function jpegImage() { |
|
|
|
// type of data: Uint8Array(width * height * numComponents)
|
|
|
|
// type of data: Uint8Array(width * height * numComponents)
|
|
|
|
var data = this._getLinearizedBlockData(width, height); |
|
|
|
var data = this._getLinearizedBlockData(width, height); |
|
|
|
|
|
|
|
|
|
|
|
if (this.numComponents === 3) { |
|
|
|
if (this.numComponents === 1 && forceRGBoutput) { |
|
|
|
|
|
|
|
var dataLength = data.length; |
|
|
|
|
|
|
|
var rgbData = new Uint8Array(dataLength * 3); |
|
|
|
|
|
|
|
var offset = 0; |
|
|
|
|
|
|
|
for (var i = 0; i < dataLength; i++) { |
|
|
|
|
|
|
|
var grayColor = data[i]; |
|
|
|
|
|
|
|
rgbData[offset++] = grayColor; |
|
|
|
|
|
|
|
rgbData[offset++] = grayColor; |
|
|
|
|
|
|
|
rgbData[offset++] = grayColor; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return rgbData; |
|
|
|
|
|
|
|
} else if (this.numComponents === 3) { |
|
|
|
return this._convertYccToRgb(data); |
|
|
|
return this._convertYccToRgb(data); |
|
|
|
} else if (this.numComponents === 4) { |
|
|
|
} else if (this.numComponents === 4) { |
|
|
|
if (this._isColorConversionNeeded()) { |
|
|
|
if (this._isColorConversionNeeded()) { |
|
|
|