Bläddra i källkod

PDF.js version 1.8.478 - See mozilla/pdf.js@c6ee05f7e5df878a2c2d78038e3069e1a7ea3b9d

pdfjsbot 8 år sedan
förälder
incheckning
938fc051d3

+ 1 - 1
bower.json

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

+ 17 - 9
build/pdf.combined.js

@@ -13077,8 +13077,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '1.8.476';
-  exports.build = build = '36fb3686';
+  exports.version = version = '1.8.478';
+  exports.build = build = 'c6ee05f7';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;
@@ -13365,6 +13365,7 @@ var SVGGraphics = function SVGGraphics() {
       this.extraStack = [];
       this.commonObjs = commonObjs;
       this.objs = objs;
+      this.pendingClip = null;
       this.pendingEOFill = false;
       this.embedFonts = false;
       this.embeddedFonts = Object.create(null);
@@ -13388,6 +13389,7 @@ var SVGGraphics = function SVGGraphics() {
       restore: function SVGGraphics_restore() {
         this.transformMatrix = this.transformStack.pop();
         this.current = this.extraStack.pop();
+        this.pendingClip = null;
         this.tgrp = null;
       },
       group: function SVGGraphics_group(items) {
@@ -13826,8 +13828,10 @@ var SVGGraphics = function SVGGraphics() {
         current.element = current.path;
         current.setCurrentPoint(x, y);
       },
-      endPath: function SVGGraphics_endPath() {},
-      clip: function SVGGraphics_clip(type) {
+      endPath: function SVGGraphics_endPath() {
+        if (!this.pendingClip) {
+          return;
+        }
         var current = this.current;
         var clipId = 'clippath' + clipCount;
         clipCount++;
@@ -13835,11 +13839,12 @@ var SVGGraphics = function SVGGraphics() {
         clipPath.setAttributeNS(null, 'id', clipId);
         clipPath.setAttributeNS(null, 'transform', pm(this.transformMatrix));
         var clipElement = current.element.cloneNode();
-        if (type === 'evenodd') {
+        if (this.pendingClip === 'evenodd') {
           clipElement.setAttributeNS(null, 'clip-rule', 'evenodd');
         } else {
           clipElement.setAttributeNS(null, 'clip-rule', 'nonzero');
         }
+        this.pendingClip = null;
         clipPath.appendChild(clipElement);
         this.defs.appendChild(clipPath);
         if (current.activeClipUrl) {
@@ -13851,6 +13856,9 @@ var SVGGraphics = function SVGGraphics() {
         current.activeClipUrl = 'url(#' + clipId + ')';
         this.tgrp = null;
       },
+      clip: function SVGGraphics_clip(type) {
+        this.pendingClip = type;
+      },
       closePath: function SVGGraphics_closePath() {
         var current = this.current;
         var d = current.path.getAttributeNS(null, 'd');
@@ -28425,8 +28433,8 @@ if (!_util.globalScope.PDFJS) {
 }
 var PDFJS = _util.globalScope.PDFJS;
 {
-  PDFJS.version = '1.8.476';
-  PDFJS.build = '36fb3686';
+  PDFJS.version = '1.8.478';
+  PDFJS.build = 'c6ee05f7';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {
@@ -47043,8 +47051,8 @@ exports.TilingPattern = TilingPattern;
 "use strict";
 
 
-var pdfjsVersion = '1.8.476';
-var pdfjsBuild = '36fb3686';
+var pdfjsVersion = '1.8.478';
+var pdfjsBuild = 'c6ee05f7';
 var pdfjsSharedUtil = __w_pdfjs_require__(0);
 var pdfjsDisplayGlobal = __w_pdfjs_require__(26);
 var pdfjsDisplayAPI = __w_pdfjs_require__(10);

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
build/pdf.combined.js.map


+ 17 - 9
build/pdf.js

@@ -3806,8 +3806,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '1.8.476';
-  exports.build = build = '36fb3686';
+  exports.version = version = '1.8.478';
+  exports.build = build = 'c6ee05f7';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;
@@ -4094,6 +4094,7 @@ var SVGGraphics = function SVGGraphics() {
       this.extraStack = [];
       this.commonObjs = commonObjs;
       this.objs = objs;
+      this.pendingClip = null;
       this.pendingEOFill = false;
       this.embedFonts = false;
       this.embeddedFonts = Object.create(null);
@@ -4117,6 +4118,7 @@ var SVGGraphics = function SVGGraphics() {
       restore: function SVGGraphics_restore() {
         this.transformMatrix = this.transformStack.pop();
         this.current = this.extraStack.pop();
+        this.pendingClip = null;
         this.tgrp = null;
       },
       group: function SVGGraphics_group(items) {
@@ -4555,8 +4557,10 @@ var SVGGraphics = function SVGGraphics() {
         current.element = current.path;
         current.setCurrentPoint(x, y);
       },
-      endPath: function SVGGraphics_endPath() {},
-      clip: function SVGGraphics_clip(type) {
+      endPath: function SVGGraphics_endPath() {
+        if (!this.pendingClip) {
+          return;
+        }
         var current = this.current;
         var clipId = 'clippath' + clipCount;
         clipCount++;
@@ -4564,11 +4568,12 @@ var SVGGraphics = function SVGGraphics() {
         clipPath.setAttributeNS(null, 'id', clipId);
         clipPath.setAttributeNS(null, 'transform', pm(this.transformMatrix));
         var clipElement = current.element.cloneNode();
-        if (type === 'evenodd') {
+        if (this.pendingClip === 'evenodd') {
           clipElement.setAttributeNS(null, 'clip-rule', 'evenodd');
         } else {
           clipElement.setAttributeNS(null, 'clip-rule', 'nonzero');
         }
+        this.pendingClip = null;
         clipPath.appendChild(clipElement);
         this.defs.appendChild(clipPath);
         if (current.activeClipUrl) {
@@ -4580,6 +4585,9 @@ var SVGGraphics = function SVGGraphics() {
         current.activeClipUrl = 'url(#' + clipId + ')';
         this.tgrp = null;
       },
+      clip: function SVGGraphics_clip(type) {
+        this.pendingClip = type;
+      },
       closePath: function SVGGraphics_closePath() {
         var current = this.current;
         var d = current.path.getAttributeNS(null, 'd');
@@ -5780,8 +5788,8 @@ if (!_util.globalScope.PDFJS) {
 }
 var PDFJS = _util.globalScope.PDFJS;
 {
-  PDFJS.version = '1.8.476';
-  PDFJS.build = '36fb3686';
+  PDFJS.version = '1.8.478';
+  PDFJS.build = 'c6ee05f7';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {
@@ -11320,8 +11328,8 @@ exports.TilingPattern = TilingPattern;
 "use strict";
 
 
-var pdfjsVersion = '1.8.476';
-var pdfjsBuild = '36fb3686';
+var pdfjsVersion = '1.8.478';
+var pdfjsBuild = 'c6ee05f7';
 var pdfjsSharedUtil = __w_pdfjs_require__(0);
 var pdfjsDisplayGlobal = __w_pdfjs_require__(9);
 var pdfjsDisplayAPI = __w_pdfjs_require__(3);

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
build/pdf.js.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
build/pdf.min.js


+ 2 - 2
build/pdf.worker.js

@@ -40317,8 +40317,8 @@ exports.Type1Parser = Type1Parser;
 "use strict";
 
 
-var pdfjsVersion = '1.8.476';
-var pdfjsBuild = '36fb3686';
+var pdfjsVersion = '1.8.478';
+var pdfjsBuild = 'c6ee05f7';
 var pdfjsCoreWorker = __w_pdfjs_require__(8);
 {
   __w_pdfjs_require__(19);

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
build/pdf.worker.js.map


+ 2 - 2
lib/display/api.js

@@ -1443,8 +1443,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
 }();
 var version, build;
 {
-  exports.version = version = '1.8.476';
-  exports.build = build = '36fb3686';
+  exports.version = version = '1.8.478';
+  exports.build = build = 'c6ee05f7';
 }
 exports.getDocument = getDocument;
 exports.LoopbackPort = LoopbackPort;

+ 2 - 2
lib/display/global.js

@@ -39,8 +39,8 @@ if (!_util.globalScope.PDFJS) {
 }
 var PDFJS = _util.globalScope.PDFJS;
 {
-  PDFJS.version = '1.8.476';
-  PDFJS.build = '36fb3686';
+  PDFJS.version = '1.8.478';
+  PDFJS.build = 'c6ee05f7';
 }
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {

+ 11 - 3
lib/display/svg.js

@@ -282,6 +282,7 @@ var SVGGraphics = function SVGGraphics() {
       this.extraStack = [];
       this.commonObjs = commonObjs;
       this.objs = objs;
+      this.pendingClip = null;
       this.pendingEOFill = false;
       this.embedFonts = false;
       this.embeddedFonts = Object.create(null);
@@ -305,6 +306,7 @@ var SVGGraphics = function SVGGraphics() {
       restore: function SVGGraphics_restore() {
         this.transformMatrix = this.transformStack.pop();
         this.current = this.extraStack.pop();
+        this.pendingClip = null;
         this.tgrp = null;
       },
       group: function SVGGraphics_group(items) {
@@ -743,8 +745,10 @@ var SVGGraphics = function SVGGraphics() {
         current.element = current.path;
         current.setCurrentPoint(x, y);
       },
-      endPath: function SVGGraphics_endPath() {},
-      clip: function SVGGraphics_clip(type) {
+      endPath: function SVGGraphics_endPath() {
+        if (!this.pendingClip) {
+          return;
+        }
         var current = this.current;
         var clipId = 'clippath' + clipCount;
         clipCount++;
@@ -752,11 +756,12 @@ var SVGGraphics = function SVGGraphics() {
         clipPath.setAttributeNS(null, 'id', clipId);
         clipPath.setAttributeNS(null, 'transform', pm(this.transformMatrix));
         var clipElement = current.element.cloneNode();
-        if (type === 'evenodd') {
+        if (this.pendingClip === 'evenodd') {
           clipElement.setAttributeNS(null, 'clip-rule', 'evenodd');
         } else {
           clipElement.setAttributeNS(null, 'clip-rule', 'nonzero');
         }
+        this.pendingClip = null;
         clipPath.appendChild(clipElement);
         this.defs.appendChild(clipPath);
         if (current.activeClipUrl) {
@@ -768,6 +773,9 @@ var SVGGraphics = function SVGGraphics() {
         current.activeClipUrl = 'url(#' + clipId + ')';
         this.tgrp = null;
       },
+      clip: function SVGGraphics_clip(type) {
+        this.pendingClip = type;
+      },
       closePath: function SVGGraphics_closePath() {
         var current = this.current;
         var d = current.path.getAttributeNS(null, 'd');

+ 2 - 2
lib/pdf.js

@@ -14,8 +14,8 @@
  */
 'use strict';
 
-var pdfjsVersion = '1.8.476';
-var pdfjsBuild = '36fb3686';
+var pdfjsVersion = '1.8.478';
+var pdfjsBuild = 'c6ee05f7';
 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,8 +14,8 @@
  */
 'use strict';
 
-var pdfjsVersion = '1.8.476';
-var pdfjsBuild = '36fb3686';
+var pdfjsVersion = '1.8.478';
+var pdfjsBuild = 'c6ee05f7';
 var pdfjsCoreWorker = require('./core/worker.js');
 {
   require('./core/network.js');

+ 1 - 1
package.json

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

Vissa filer visades inte eftersom för många filer har ändrats