Răsfoiți Sursa

PDF.js version 1.0.270

Yury Delendik 10 ani în urmă
părinte
comite
1d187dc172
5 a modificat fișierele cu 22 adăugiri și 12 ștergeri
  1. 1 1
      bower.json
  2. 9 4
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 9 4
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.0.268",
+  "version": "1.0.270",
   "keywords": [
     "Mozilla",
     "pdf",

+ 9 - 4
build/pdf.combined.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.268';
-PDFJS.build = '7e6cdc7';
+PDFJS.version = '1.0.270';
+PDFJS.build = '844bc64';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -20621,7 +20621,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
                 assert(isName(type),
                   'XObject should have a Name subtype');
 
-                if ('Form' == type.name) {
+                if (type.name === 'Form') {
                   stateManager.save();
                   return self.buildFormXObject(resources, xobj, null,
                                                operatorList,
@@ -20630,11 +20630,16 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
                       stateManager.restore();
                       next(resolve, reject);
                     }, reject);
-                } else if ('Image' == type.name) {
+                } else if (type.name === 'Image') {
                   self.buildPaintImageXObject(resources, xobj, false,
                     operatorList, name, imageCache);
                   args = [];
                   continue;
+                } else if (type.name === 'PS') {
+                  // PostScript XObjects are unused when viewing documents.
+                  // See section 4.7.1 of Adobe's PDF reference.
+                  info('Ignored XObject subtype PS');
+                  continue;
                 } else {
                   error('Unhandled XObject subtype ' + type.name);
                 }

+ 2 - 2
build/pdf.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.268';
-PDFJS.build = '7e6cdc7';
+PDFJS.version = '1.0.270';
+PDFJS.build = '844bc64';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 9 - 4
build/pdf.worker.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.268';
-PDFJS.build = '7e6cdc7';
+PDFJS.version = '1.0.270';
+PDFJS.build = '844bc64';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -16121,7 +16121,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
                 assert(isName(type),
                   'XObject should have a Name subtype');
 
-                if ('Form' == type.name) {
+                if (type.name === 'Form') {
                   stateManager.save();
                   return self.buildFormXObject(resources, xobj, null,
                                                operatorList,
@@ -16130,11 +16130,16 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
                       stateManager.restore();
                       next(resolve, reject);
                     }, reject);
-                } else if ('Image' == type.name) {
+                } else if (type.name === 'Image') {
                   self.buildPaintImageXObject(resources, xobj, false,
                     operatorList, name, imageCache);
                   args = [];
                   continue;
+                } else if (type.name === 'PS') {
+                  // PostScript XObjects are unused when viewing documents.
+                  // See section 4.7.1 of Adobe's PDF reference.
+                  info('Ignored XObject subtype PS');
+                  continue;
                 } else {
                   error('Unhandled XObject subtype ' + type.name);
                 }

+ 1 - 1
package.json

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