Forráskód Böngészése

PDF.js version 1.9.484 - See mozilla/pdf.js@7cc72606346d7fa8b8edfbbde59cf0598ac4b98f

pdfjsbot 7 éve
szülő
commit
1a3e802e95

+ 1 - 1
bower.json

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

+ 15 - 7
build/pdf.combined.js

@@ -13675,8 +13675,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '1.9.482';
-  exports.build = build = 'a0eed974';
+  exports.version = version = '1.9.484';
+  exports.build = build = '7cc72606';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;
@@ -14125,6 +14125,9 @@ var SVGGraphics = function SVGGraphics() {
             case _util.OPS.setTextMatrix:
               this.setTextMatrix(args[0], args[1], args[2], args[3], args[4], args[5]);
               break;
+            case _util.OPS.setTextRise:
+              this.setTextRise(args[0]);
+              break;
             case _util.OPS.setLineWidth:
               this.setLineWidth(args[0]);
               break;
@@ -14318,7 +14321,12 @@ var SVGGraphics = function SVGGraphics() {
         if (current.fillColor !== SVG_DEFAULTS.fillColor) {
           current.tspan.setAttributeNS(null, 'fill', current.fillColor);
         }
-        current.txtElement.setAttributeNS(null, 'transform', pm(current.textMatrix) + ' scale(1, -1)');
+        var textMatrix = current.textMatrix;
+        if (current.textRise !== 0) {
+          textMatrix = textMatrix.slice();
+          textMatrix[5] += current.textRise;
+        }
+        current.txtElement.setAttributeNS(null, 'transform', pm(textMatrix) + ' scale(1, -1)');
         current.txtElement.setAttributeNS(XML_NS, 'xml:space', 'preserve');
         current.txtElement.appendChild(current.tspan);
         current.txtgrp.appendChild(current.txtElement);
@@ -29040,8 +29048,8 @@ if (!_global_scope2.default.PDFJS) {
 }
 var PDFJS = _global_scope2.default.PDFJS;
 {
-  PDFJS.version = '1.9.482';
-  PDFJS.build = 'a0eed974';
+  PDFJS.version = '1.9.484';
+  PDFJS.build = '7cc72606';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {
@@ -50347,8 +50355,8 @@ exports.PDFDataTransportStream = PDFDataTransportStream;
 "use strict";
 
 
-var pdfjsVersion = '1.9.482';
-var pdfjsBuild = 'a0eed974';
+var pdfjsVersion = '1.9.484';
+var pdfjsBuild = '7cc72606';
 var pdfjsSharedUtil = __w_pdfjs_require__(0);
 var pdfjsDisplayGlobal = __w_pdfjs_require__(70);
 var pdfjsDisplayAPI = __w_pdfjs_require__(37);

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
build/pdf.combined.js.map


+ 15 - 7
build/pdf.js

@@ -4406,8 +4406,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '1.9.482';
-  exports.build = build = 'a0eed974';
+  exports.version = version = '1.9.484';
+  exports.build = build = '7cc72606';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;
@@ -4856,6 +4856,9 @@ var SVGGraphics = function SVGGraphics() {
             case _util.OPS.setTextMatrix:
               this.setTextMatrix(args[0], args[1], args[2], args[3], args[4], args[5]);
               break;
+            case _util.OPS.setTextRise:
+              this.setTextRise(args[0]);
+              break;
             case _util.OPS.setLineWidth:
               this.setLineWidth(args[0]);
               break;
@@ -5049,7 +5052,12 @@ var SVGGraphics = function SVGGraphics() {
         if (current.fillColor !== SVG_DEFAULTS.fillColor) {
           current.tspan.setAttributeNS(null, 'fill', current.fillColor);
         }
-        current.txtElement.setAttributeNS(null, 'transform', pm(current.textMatrix) + ' scale(1, -1)');
+        var textMatrix = current.textMatrix;
+        if (current.textRise !== 0) {
+          textMatrix = textMatrix.slice();
+          textMatrix[5] += current.textRise;
+        }
+        current.txtElement.setAttributeNS(null, 'transform', pm(textMatrix) + ' scale(1, -1)');
         current.txtElement.setAttributeNS(XML_NS, 'xml:space', 'preserve');
         current.txtElement.appendChild(current.tspan);
         current.txtgrp.appendChild(current.txtElement);
@@ -6892,8 +6900,8 @@ if (!_global_scope2.default.PDFJS) {
 }
 var PDFJS = _global_scope2.default.PDFJS;
 {
-  PDFJS.version = '1.9.482';
-  PDFJS.build = 'a0eed974';
+  PDFJS.version = '1.9.484';
+  PDFJS.build = '7cc72606';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {
@@ -14795,8 +14803,8 @@ exports.PDFDataTransportStream = PDFDataTransportStream;
 "use strict";
 
 
-var pdfjsVersion = '1.9.482';
-var pdfjsBuild = 'a0eed974';
+var pdfjsVersion = '1.9.484';
+var pdfjsBuild = '7cc72606';
 var pdfjsSharedUtil = __w_pdfjs_require__(0);
 var pdfjsDisplayGlobal = __w_pdfjs_require__(54);
 var pdfjsDisplayAPI = __w_pdfjs_require__(30);

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
build/pdf.js.map


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
build/pdf.min.js


+ 2 - 2
build/pdf.worker.js

@@ -42145,8 +42145,8 @@ exports.Type1Parser = Type1Parser;
 "use strict";
 
 
-var pdfjsVersion = '1.9.482';
-var pdfjsBuild = 'a0eed974';
+var pdfjsVersion = '1.9.484';
+var pdfjsBuild = '7cc72606';
 var pdfjsCoreWorker = __w_pdfjs_require__(61);
 exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
 

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
build/pdf.worker.js.map


+ 2 - 2
lib/display/api.js

@@ -1581,8 +1581,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '1.9.482';
-  exports.build = build = 'a0eed974';
+  exports.version = version = '1.9.484';
+  exports.build = build = '7cc72606';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;

+ 2 - 2
lib/display/global.js

@@ -45,8 +45,8 @@ if (!_global_scope2.default.PDFJS) {
 }
 var PDFJS = _global_scope2.default.PDFJS;
 {
-  PDFJS.version = '1.9.482';
-  PDFJS.build = 'a0eed974';
+  PDFJS.version = '1.9.484';
+  PDFJS.build = '7cc72606';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {

+ 9 - 1
lib/display/svg.js

@@ -443,6 +443,9 @@ var SVGGraphics = function SVGGraphics() {
             case _util.OPS.setTextMatrix:
               this.setTextMatrix(args[0], args[1], args[2], args[3], args[4], args[5]);
               break;
+            case _util.OPS.setTextRise:
+              this.setTextRise(args[0]);
+              break;
             case _util.OPS.setLineWidth:
               this.setLineWidth(args[0]);
               break;
@@ -636,7 +639,12 @@ var SVGGraphics = function SVGGraphics() {
         if (current.fillColor !== SVG_DEFAULTS.fillColor) {
           current.tspan.setAttributeNS(null, 'fill', current.fillColor);
         }
-        current.txtElement.setAttributeNS(null, 'transform', pm(current.textMatrix) + ' scale(1, -1)');
+        var textMatrix = current.textMatrix;
+        if (current.textRise !== 0) {
+          textMatrix = textMatrix.slice();
+          textMatrix[5] += current.textRise;
+        }
+        current.txtElement.setAttributeNS(null, 'transform', pm(textMatrix) + ' scale(1, -1)');
         current.txtElement.setAttributeNS(XML_NS, 'xml:space', 'preserve');
         current.txtElement.appendChild(current.tspan);
         current.txtgrp.appendChild(current.txtElement);

+ 2 - 2
lib/pdf.js

@@ -14,8 +14,8 @@
  */
 'use strict';
 
-var pdfjsVersion = '1.9.482';
-var pdfjsBuild = 'a0eed974';
+var pdfjsVersion = '1.9.484';
+var pdfjsBuild = '7cc72606';
 var pdfjsSharedUtil = require('./shared/util.js');
 var pdfjsDisplayGlobal = require('./display/global.js');
 var pdfjsDisplayAPI = require('./display/api.js');

+ 2 - 2
lib/pdf.worker.js

@@ -14,7 +14,7 @@
  */
 'use strict';
 
-var pdfjsVersion = '1.9.482';
-var pdfjsBuild = 'a0eed974';
+var pdfjsVersion = '1.9.484';
+var pdfjsBuild = '7cc72606';
 var pdfjsCoreWorker = require('./core/worker.js');
 exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

+ 1 - 1
package.json

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

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott