Browse Source

PDF.js version 1.1.496

master v1.1.496
Pdf Bot 9 years ago
parent
commit
0381f72b51
  1. 2
      bower.json
  2. 18
      build/pdf.combined.js
  3. 18
      build/pdf.js
  4. 4
      build/pdf.worker.js
  5. 2
      package.json
  6. 6
      web/compatibility.js

2
bower.json

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

18
build/pdf.combined.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.1.494';
PDFJS.build = '82f73df';
PDFJS.version = '1.1.496';
PDFJS.build = 'dd9d0b8';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
@ -4350,12 +4350,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { @@ -4350,12 +4350,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
ctx.fill();
ctx.mozFillRule = 'nonzero';
} else {
try {
ctx.fill('evenodd');
} catch (ex) {
// shouldn't really happen, but browsers might think differently
ctx.fill();
}
ctx.fill('evenodd');
}
this.pendingEOFill = false;
} else {
@ -5368,12 +5363,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { @@ -5368,12 +5363,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
ctx.clip();
ctx.mozFillRule = 'nonzero';
} else {
try {
ctx.clip('evenodd');
} catch (ex) {
// shouldn't really happen, but browsers might think differently
ctx.clip();
}
ctx.clip('evenodd');
}
} else {
ctx.clip();

18
build/pdf.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.1.494';
PDFJS.build = '82f73df';
PDFJS.version = '1.1.496';
PDFJS.build = 'dd9d0b8';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
@ -4394,12 +4394,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { @@ -4394,12 +4394,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
ctx.fill();
ctx.mozFillRule = 'nonzero';
} else {
try {
ctx.fill('evenodd');
} catch (ex) {
// shouldn't really happen, but browsers might think differently
ctx.fill();
}
ctx.fill('evenodd');
}
this.pendingEOFill = false;
} else {
@ -5412,12 +5407,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { @@ -5412,12 +5407,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
ctx.clip();
ctx.mozFillRule = 'nonzero';
} else {
try {
ctx.clip('evenodd');
} catch (ex) {
// shouldn't really happen, but browsers might think differently
ctx.clip();
}
ctx.clip('evenodd');
}
} else {
ctx.clip();

4
build/pdf.worker.js vendored

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.1.494';
PDFJS.build = '82f73df';
PDFJS.version = '1.1.496';
PDFJS.build = 'dd9d0b8';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it

2
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.1.494",
"version": "1.1.496",
"description": "Generic build of Mozilla's PDF.js library.",
"keywords": [
"Mozilla",

6
web/compatibility.js

@ -522,9 +522,9 @@ if (typeof PDFJS === 'undefined') { @@ -522,9 +522,9 @@ if (typeof PDFJS === 'undefined') {
if (polyfill) {
var contextPrototype = window.CanvasRenderingContext2D.prototype;
contextPrototype._createImageData = contextPrototype.createImageData;
var createImageData = contextPrototype.createImageData;
contextPrototype.createImageData = function(w, h) {
var imageData = this._createImageData(w, h);
var imageData = createImageData.call(this, w, h);
imageData.data.set = function(arr) {
for (var i = 0, ii = this.length; i < ii; i++) {
this[i] = arr[i];
@ -532,6 +532,8 @@ if (typeof PDFJS === 'undefined') { @@ -532,6 +532,8 @@ if (typeof PDFJS === 'undefined') {
};
return imageData;
};
// this closure will be kept referenced, so clear its vars
contextPrototype = null;
}
}
})();

Loading…
Cancel
Save