From 858bc0cf887b98b389bc3409389df35f54d95e28 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Fri, 6 Mar 2015 21:59:44 +0000 Subject: [PATCH] PDF.js version 1.0.1185 --- bower.json | 2 +- build/pdf.combined.js | 9 ++++----- build/pdf.js | 4 ++-- build/pdf.worker.js | 9 ++++----- package.json | 2 +- 5 files changed, 12 insertions(+), 14 deletions(-) diff --git a/bower.json b/bower.json index 1e6d31bfa..8aa0a3f19 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.1183", + "version": "1.0.1185", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 9b421a424..829591085 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.1183'; -PDFJS.build = 'dc82ace'; +PDFJS.version = '1.0.1185'; +PDFJS.build = 'c69ad58'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -22990,8 +22990,6 @@ var Font = (function FontClosure() { if (subtype === 'CIDFontType0C' && 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') { type = 'OpenType'; } @@ -24398,7 +24396,8 @@ var Font = (function FontClosure() { var isTrueType = !tables['CFF ']; if (!isTrueType) { // 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 cffFile = new Stream(tables['CFF '].data); cff = new CFFFont(cffFile, properties); diff --git a/build/pdf.js b/build/pdf.js index 122305b3b..33c1a8932 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.1183'; -PDFJS.build = 'dc82ace'; +PDFJS.version = '1.0.1185'; +PDFJS.build = 'c69ad58'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 21021296b..591992a67 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.1183'; -PDFJS.build = 'dc82ace'; +PDFJS.version = '1.0.1185'; +PDFJS.build = 'c69ad58'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -16654,8 +16654,6 @@ var Font = (function FontClosure() { if (subtype === 'CIDFontType0C' && 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') { type = 'OpenType'; } @@ -18062,7 +18060,8 @@ var Font = (function FontClosure() { var isTrueType = !tables['CFF ']; if (!isTrueType) { // 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 cffFile = new Stream(tables['CFF '].data); cff = new CFFFont(cffFile, properties); diff --git a/package.json b/package.json index 3a0d7630e..70e9f8d70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.1183", + "version": "1.0.1185", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",