Browse Source

PDF.js version 1.0.1185

Pdf Bot 10 years ago
parent
commit
858bc0cf88
5 changed files with 12 additions and 14 deletions
  1. 1 1
      bower.json
  2. 4 5
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 4 5
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

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

+ 4 - 5
build/pdf.combined.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 }
 
 
-PDFJS.version = '1.0.1183';
-PDFJS.build = 'dc82ace';
+PDFJS.version = '1.0.1185';
+PDFJS.build = 'c69ad58';
 
 
 (function pdfjsWrapper() {
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
   // Use strict in our context only - users might not want it
@@ -22990,8 +22990,6 @@ var Font = (function FontClosure() {
     if (subtype === 'CIDFontType0C' && type !== 'CIDFontType0') {
     if (subtype === 'CIDFontType0C' && type !== 'CIDFontType0') {
       type = 'CIDFontType0';
       type = 'CIDFontType0';
     }
     }
-    // XXX: Temporarily change the type for open type so we trigger a warning.
-    // This should be removed when we add support for open type.
     if (subtype === 'OpenType') {
     if (subtype === 'OpenType') {
       type = 'OpenType';
       type = 'OpenType';
     }
     }
@@ -24398,7 +24396,8 @@ var Font = (function FontClosure() {
       var isTrueType = !tables['CFF '];
       var isTrueType = !tables['CFF '];
       if (!isTrueType) {
       if (!isTrueType) {
         // OpenType font
         // OpenType font
-        if (!tables.head || !tables.hhea || !tables.maxp || !tables.post) {
+        if (header.version === 'OTTO' ||
+            !tables.head || !tables.hhea || !tables.maxp || !tables.post) {
           // no major tables: throwing everything at CFFFont
           // no major tables: throwing everything at CFFFont
           cffFile = new Stream(tables['CFF '].data);
           cffFile = new Stream(tables['CFF '].data);
           cff = new CFFFont(cffFile, properties);
           cff = new CFFFont(cffFile, properties);

+ 2 - 2
build/pdf.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 }
 
 
-PDFJS.version = '1.0.1183';
-PDFJS.build = 'dc82ace';
+PDFJS.version = '1.0.1185';
+PDFJS.build = 'c69ad58';
 
 
 (function pdfjsWrapper() {
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
   // Use strict in our context only - users might not want it

+ 4 - 5
build/pdf.worker.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 }
 
 
-PDFJS.version = '1.0.1183';
-PDFJS.build = 'dc82ace';
+PDFJS.version = '1.0.1185';
+PDFJS.build = 'c69ad58';
 
 
 (function pdfjsWrapper() {
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
   // Use strict in our context only - users might not want it
@@ -16654,8 +16654,6 @@ var Font = (function FontClosure() {
     if (subtype === 'CIDFontType0C' && type !== 'CIDFontType0') {
     if (subtype === 'CIDFontType0C' && type !== 'CIDFontType0') {
       type = 'CIDFontType0';
       type = 'CIDFontType0';
     }
     }
-    // XXX: Temporarily change the type for open type so we trigger a warning.
-    // This should be removed when we add support for open type.
     if (subtype === 'OpenType') {
     if (subtype === 'OpenType') {
       type = 'OpenType';
       type = 'OpenType';
     }
     }
@@ -18062,7 +18060,8 @@ var Font = (function FontClosure() {
       var isTrueType = !tables['CFF '];
       var isTrueType = !tables['CFF '];
       if (!isTrueType) {
       if (!isTrueType) {
         // OpenType font
         // OpenType font
-        if (!tables.head || !tables.hhea || !tables.maxp || !tables.post) {
+        if (header.version === 'OTTO' ||
+            !tables.head || !tables.hhea || !tables.maxp || !tables.post) {
           // no major tables: throwing everything at CFFFont
           // no major tables: throwing everything at CFFFont
           cffFile = new Stream(tables['CFF '].data);
           cffFile = new Stream(tables['CFF '].data);
           cff = new CFFFont(cffFile, properties);
           cff = new CFFFont(cffFile, properties);

+ 1 - 1
package.json

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