From d134e2fb68b5f7105825e1134dfaab6901455e2b Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Fri, 9 Sep 2016 21:06:08 +0100 Subject: [PATCH] PDF.js version 1.5.444 - See mozilla/pdf.js@b112f9f9f40630b74027bb2328e9a7de5e9a13c8 --- bower.json | 2 +- build/pdf.combined.js | 21 +++++++++++++-------- build/pdf.js | 4 ++-- build/pdf.worker.js | 21 +++++++++++++-------- package.json | 2 +- 5 files changed, 30 insertions(+), 20 deletions(-) diff --git a/bower.json b/bower.json index c17874160..e1bf3162c 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.5.442", + "version": "1.5.444", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 069aed475..52e823c44 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.5.442'; -var pdfjsBuild = '22c7ff4'; +var pdfjsVersion = '1.5.444'; +var pdfjsBuild = 'b112f9f'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -32711,12 +32711,17 @@ var Font = (function FontClosure() { } // Some fonts might use wrong font types for Type1C or CIDFontType0C - if (subtype === 'Type1C' && (type !== 'Type1' && type !== 'MMType1')) { - // Some TrueType fonts by mistake claim Type1C - if (isTrueTypeFile(file)) { - subtype = 'TrueType'; - } else { - type = 'Type1'; + if (subtype === 'Type1C') { + if (type !== 'Type1' && type !== 'MMType1') { + // Some TrueType fonts by mistake claim Type1C + if (isTrueTypeFile(file)) { + subtype = 'TrueType'; + } else { + type = 'Type1'; + } + } else if (isOpenTypeFile(file)) { + // Sometimes the type/subtype can be a complete lie (see issue7598.pdf). + type = subtype = 'OpenType'; } } if (subtype === 'CIDFontType0C' && type !== 'CIDFontType0') { diff --git a/build/pdf.js b/build/pdf.js index bbff98adf..c0c55cf22 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.5.442'; -var pdfjsBuild = '22c7ff4'; +var pdfjsVersion = '1.5.444'; +var pdfjsBuild = 'b112f9f'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 4f440a207..ab194b4a2 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.5.442'; -var pdfjsBuild = '22c7ff4'; +var pdfjsVersion = '1.5.444'; +var pdfjsBuild = 'b112f9f'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? @@ -28428,12 +28428,17 @@ var Font = (function FontClosure() { } // Some fonts might use wrong font types for Type1C or CIDFontType0C - if (subtype === 'Type1C' && (type !== 'Type1' && type !== 'MMType1')) { - // Some TrueType fonts by mistake claim Type1C - if (isTrueTypeFile(file)) { - subtype = 'TrueType'; - } else { - type = 'Type1'; + if (subtype === 'Type1C') { + if (type !== 'Type1' && type !== 'MMType1') { + // Some TrueType fonts by mistake claim Type1C + if (isTrueTypeFile(file)) { + subtype = 'TrueType'; + } else { + type = 'Type1'; + } + } else if (isOpenTypeFile(file)) { + // Sometimes the type/subtype can be a complete lie (see issue7598.pdf). + type = subtype = 'OpenType'; } } if (subtype === 'CIDFontType0C' && type !== 'CIDFontType0') { diff --git a/package.json b/package.json index 744ff6607..5fbbf984f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.5.442", + "version": "1.5.444", "main": "build/pdf.js", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [