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 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.4.79",
"version": "1.4.81",
"main": [
"build/pdf.js",
"build/pdf.worker.js"

17
build/pdf.combined.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {})); @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
// Use strict in our context only - users might not want it
'use strict';
var pdfjsVersion = '1.4.79';
var pdfjsBuild = '9eedfc1';
var pdfjsVersion = '1.4.81';
var pdfjsBuild = '8cdb696';
var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ?
@ -1615,7 +1615,18 @@ var JpegImage = (function jpegImage() { @@ -1615,7 +1615,18 @@ var JpegImage = (function jpegImage() {
// type of data: Uint8Array(width * height * numComponents)
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);
} else if (this.numComponents === 4) {
if (this._isColorConversionNeeded()) {

4
build/pdf.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {})); @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {}));
// Use strict in our context only - users might not want it
'use strict';
var pdfjsVersion = '1.4.79';
var pdfjsBuild = '9eedfc1';
var pdfjsVersion = '1.4.81';
var pdfjsBuild = '8cdb696';
var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ?

17
build/pdf.worker.js vendored

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {})); @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {}));
// Use strict in our context only - users might not want it
'use strict';
var pdfjsVersion = '1.4.79';
var pdfjsBuild = '9eedfc1';
var pdfjsVersion = '1.4.81';
var pdfjsBuild = '8cdb696';
var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ?
@ -1615,7 +1615,18 @@ var JpegImage = (function jpegImage() { @@ -1615,7 +1615,18 @@ var JpegImage = (function jpegImage() {
// type of data: Uint8Array(width * height * numComponents)
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);
} else if (this.numComponents === 4) {
if (this._isColorConversionNeeded()) {

2
package.json

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

Loading…
Cancel
Save