瀏覽代碼

PDF.js version 1.6.295 - See mozilla/pdf.js@6e22b323727091734d36658b276d05140e7ea8bc

Pdf Bot 8 年之前
父節點
當前提交
5f281d1c1f
共有 5 個文件被更改,包括 18 次插入8 次删除
  1. 1 1
      bower.json
  2. 7 2
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 7 2
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

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

+ 7 - 2
build/pdf.combined.js

@@ -24,8 +24,8 @@
 }(this, function (exports) {
   // Use strict in our context only - users might not want it
   'use strict';
-  var pdfjsVersion = '1.6.293';
-  var pdfjsBuild = '9295114';
+  var pdfjsVersion = '1.6.295';
+  var pdfjsBuild = '6e22b32';
   var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
   var pdfjsLibs = {};
   (function pdfjsWrapper() {
@@ -53403,6 +53403,7 @@
               var outlineItem = {
                 dest: data.dest,
                 url: data.url,
+                unsafeUrl: data.unsafeUrl,
                 newWindow: data.newWindow,
                 title: stringToPDFString(title),
                 color: rgbColor,
@@ -53844,6 +53845,10 @@
             case 'GoTo':
               dest = action.get('D');
               break;
+            case 'Launch':
+            // We neither want, nor can, support arbitrary 'Launch' actions.
+            // However, in practice they are mostly used for linking to other PDF
+            // files, which we thus attempt to support (utilizing `docBaseUrl`).
             case 'GoToR':
               var urlDict = action.get('F');
               if (isDict(urlDict)) {

+ 2 - 2
build/pdf.js

@@ -24,8 +24,8 @@
 }(this, function (exports) {
   // Use strict in our context only - users might not want it
   'use strict';
-  var pdfjsVersion = '1.6.293';
-  var pdfjsBuild = '9295114';
+  var pdfjsVersion = '1.6.295';
+  var pdfjsBuild = '6e22b32';
   var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
   var pdfjsLibs = {};
   (function pdfjsWrapper() {

+ 7 - 2
build/pdf.worker.js

@@ -24,8 +24,8 @@
 }(this, function (exports) {
   // Use strict in our context only - users might not want it
   'use strict';
-  var pdfjsVersion = '1.6.293';
-  var pdfjsBuild = '9295114';
+  var pdfjsVersion = '1.6.295';
+  var pdfjsBuild = '6e22b32';
   var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null;
   var pdfjsLibs = {};
   (function pdfjsWrapper() {
@@ -45466,6 +45466,7 @@
               var outlineItem = {
                 dest: data.dest,
                 url: data.url,
+                unsafeUrl: data.unsafeUrl,
                 newWindow: data.newWindow,
                 title: stringToPDFString(title),
                 color: rgbColor,
@@ -45907,6 +45908,10 @@
             case 'GoTo':
               dest = action.get('D');
               break;
+            case 'Launch':
+            // We neither want, nor can, support arbitrary 'Launch' actions.
+            // However, in practice they are mostly used for linking to other PDF
+            // files, which we thus attempt to support (utilizing `docBaseUrl`).
             case 'GoToR':
               var urlDict = action.get('F');
               if (isDict(urlDict)) {

+ 1 - 1
package.json

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