Browse Source

PDF.js version 1.4.81 - See mozilla/pdf.js@8cdb69634f6149f400541794b69e6fc85c433420

master v1.4.81
Pdf Bot 9 years ago
parent
commit
d59fb5a02b
  1. 2
      bower.json
  2. 17
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 17
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.4.79", "version": "1.4.81",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

17
build/pdf.combined.js

@ -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()) {

4
build/pdf.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {}));
// 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 ?

17
build/pdf.worker.js vendored

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {}));
// 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()) {

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.4.79", "version": "1.4.81",
"main": "build/pdf.js", "main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [

Loading…
Cancel
Save