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 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.1.494", "version": "1.1.496",
"main": [ "main": [
"build/pdf.js", "build/pdf.js",
"build/pdf.worker.js" "build/pdf.worker.js"

18
build/pdf.combined.js

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

18
build/pdf.js

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

4
build/pdf.worker.js vendored

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

2
package.json

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

6
web/compatibility.js

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

Loading…
Cancel
Save