2
0
Эх сурвалжийг харах

PDF.js version 1.3.64 - See mozilla/pdf.js@a96602223fcbf9017557cb894e3342566066b83c

Pdf Bot 9 жил өмнө
parent
commit
3e086ab7a5

+ 1 - 1
bower.json

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

+ 9 - 2
build/pdf.combined.js

@@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.3.62';
-PDFJS.build = '084bb86';
+PDFJS.version = '1.3.64';
+PDFJS.build = 'a966022';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -23928,6 +23928,9 @@ function reverseIfRtl(chars) {
 }
 
 function adjustWidths(properties) {
+  if (!properties.fontMatrix) {
+    return;
+  }
   if (properties.fontMatrix[0] === FONT_IDENTITY_MATRIX[0]) {
     return;
   }
@@ -24442,6 +24445,8 @@ var Font = (function FontClosure() {
         // view of the sanitizer
         data = this.checkAndRepair(name, file, properties);
         if (this.isOpenType) {
+          adjustWidths(properties);
+
           type = 'OpenType';
         }
         break;
@@ -25874,6 +25879,8 @@ var Font = (function FontClosure() {
           cffFile = new Stream(tables['CFF '].data);
           cff = new CFFFont(cffFile, properties);
 
+          adjustWidths(properties);
+
           return this.convert(name, cff, properties);
         }
 

+ 2 - 2
build/pdf.js

@@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.3.62';
-PDFJS.build = '084bb86';
+PDFJS.version = '1.3.64';
+PDFJS.build = 'a966022';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 9 - 2
build/pdf.worker.js

@@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.3.62';
-PDFJS.build = '084bb86';
+PDFJS.version = '1.3.64';
+PDFJS.build = 'a966022';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -16813,6 +16813,9 @@ function reverseIfRtl(chars) {
 }
 
 function adjustWidths(properties) {
+  if (!properties.fontMatrix) {
+    return;
+  }
   if (properties.fontMatrix[0] === FONT_IDENTITY_MATRIX[0]) {
     return;
   }
@@ -17327,6 +17330,8 @@ var Font = (function FontClosure() {
         // view of the sanitizer
         data = this.checkAndRepair(name, file, properties);
         if (this.isOpenType) {
+          adjustWidths(properties);
+
           type = 'OpenType';
         }
         break;
@@ -18759,6 +18764,8 @@ var Font = (function FontClosure() {
           cffFile = new Stream(tables['CFF '].data);
           cff = new CFFFont(cffFile, properties);
 
+          adjustWidths(properties);
+
           return this.convert(name, cff, properties);
         }
 

+ 1 - 1
package.json

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