Browse Source

PDF.js version 1.4.135 - See mozilla/pdf.js@c6d2b7f9d9c8fdf75b0b73b5c6bb1b7b7ebcf91d

Pdf Bot 9 năm trước cách đây
mục cha
commit
039932cb1a
5 tập tin đã thay đổi với 14 bổ sung8 xóa
  1. 1 1
      bower.json
  2. 5 2
      build/pdf.combined.js
  3. 5 2
      build/pdf.js
  4. 2 2
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

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

+ 5 - 2
build/pdf.combined.js

@@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
   // Use strict in our context only - users might not want it
   'use strict';
 
-var pdfjsVersion = '1.4.133';
-var pdfjsBuild = '4784863';
+var pdfjsVersion = '1.4.135';
+var pdfjsBuild = 'c6d2b7f';
 
   var pdfjsFilePath =
     typeof document !== 'undefined' && document.currentScript ?
@@ -29159,7 +29159,10 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
 
       if (this.transparentCanvas) {
         this.ctx = this.compositeCtx;
+        this.ctx.save();
+        this.ctx.setTransform(1, 0, 0, 1, 0, 0); // Avoid apply transform twice
         this.ctx.drawImage(this.transparentCanvas, 0, 0);
+        this.ctx.restore();
         this.transparentCanvas = null;
       }
 

+ 5 - 2
build/pdf.js

@@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {}));
   // Use strict in our context only - users might not want it
   'use strict';
 
-var pdfjsVersion = '1.4.133';
-var pdfjsBuild = '4784863';
+var pdfjsVersion = '1.4.135';
+var pdfjsBuild = 'c6d2b7f';
 
   var pdfjsFilePath =
     typeof document !== 'undefined' && document.currentScript ?
@@ -7062,7 +7062,10 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
 
       if (this.transparentCanvas) {
         this.ctx = this.compositeCtx;
+        this.ctx.save();
+        this.ctx.setTransform(1, 0, 0, 1, 0, 0); // Avoid apply transform twice
         this.ctx.drawImage(this.transparentCanvas, 0, 0);
+        this.ctx.restore();
         this.transparentCanvas = null;
       }
 

+ 2 - 2
build/pdf.worker.js

@@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {}));
   // Use strict in our context only - users might not want it
   'use strict';
 
-var pdfjsVersion = '1.4.133';
-var pdfjsBuild = '4784863';
+var pdfjsVersion = '1.4.135';
+var pdfjsBuild = 'c6d2b7f';
 
   var pdfjsFilePath =
     typeof document !== 'undefined' && document.currentScript ?

+ 1 - 1
package.json

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