ソースを参照

PDF.js version 1.1.260

Pdf Bot 9 年 前
コミット
3b3f6f744f
5 ファイル変更22 行追加8 行削除
  1. 1 1
      bower.json
  2. 9 2
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 9 2
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

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

+ 9 - 2
build/pdf.combined.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.258';
-PDFJS.build = '5aaf18d';
+PDFJS.version = '1.1.260';
+PDFJS.build = 'e5b7258';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -11465,6 +11465,13 @@ var Annotation = (function AnnotationClosure() {
             this.borderStyle.setDashArray(array[3]);
           }
         }
+      } else {
+        // There are no border entries in the dictionary. According to the
+        // specification, we should draw a solid border of width 1 in that
+        // case, but Adobe Reader did not implement that part of the
+        // specification and instead draws no border at all, so we do the same.
+        // See also https://github.com/mozilla/pdf.js/issues/6179.
+        this.borderStyle.setWidth(0);
       }
     },
 

+ 2 - 2
build/pdf.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.258';
-PDFJS.build = '5aaf18d';
+PDFJS.version = '1.1.260';
+PDFJS.build = 'e5b7258';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 9 - 2
build/pdf.worker.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.258';
-PDFJS.build = '5aaf18d';
+PDFJS.version = '1.1.260';
+PDFJS.build = 'e5b7258';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -5066,6 +5066,13 @@ var Annotation = (function AnnotationClosure() {
             this.borderStyle.setDashArray(array[3]);
           }
         }
+      } else {
+        // There are no border entries in the dictionary. According to the
+        // specification, we should draw a solid border of width 1 in that
+        // case, but Adobe Reader did not implement that part of the
+        // specification and instead draws no border at all, so we do the same.
+        // See also https://github.com/mozilla/pdf.js/issues/6179.
+        this.borderStyle.setWidth(0);
       }
     },
 

+ 1 - 1
package.json

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