|
|
|
@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
@@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
|
|
|
|
|
// Use strict in our context only - users might not want it
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
|
|
var pdfjsVersion = '1.3.163'; |
|
|
|
|
var pdfjsBuild = '30b8f41'; |
|
|
|
|
var pdfjsVersion = '1.3.165'; |
|
|
|
|
var pdfjsBuild = '3057b69'; |
|
|
|
|
|
|
|
|
|
var pdfjsFilePath = |
|
|
|
|
typeof document !== 'undefined' && document.currentScript ? |
|
|
|
@ -35048,7 +35048,14 @@ var Font = (function FontClosure() {
@@ -35048,7 +35048,14 @@ var Font = (function FontClosure() {
|
|
|
|
|
} |
|
|
|
|
// Some CIDFontType0C fonts by mistake claim CIDFontType0.
|
|
|
|
|
if (type === 'CIDFontType0') { |
|
|
|
|
subtype = isType1File(file) ? 'CIDFontType0' : 'CIDFontType0C'; |
|
|
|
|
if (isType1File(file)) { |
|
|
|
|
subtype = 'CIDFontType0'; |
|
|
|
|
} else if (isOpenTypeFile(file)) { |
|
|
|
|
// Sometimes the type/subtype can be a complete lie (see issue6782.pdf).
|
|
|
|
|
type = subtype = 'OpenType'; |
|
|
|
|
} else { |
|
|
|
|
subtype = 'CIDFontType0C'; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var data; |
|
|
|
@ -35132,6 +35139,11 @@ var Font = (function FontClosure() {
@@ -35132,6 +35139,11 @@ var Font = (function FontClosure() {
|
|
|
|
|
return readUint32(header, 0) === 0x00010000; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function isOpenTypeFile(file) { |
|
|
|
|
var header = file.peekBytes(4); |
|
|
|
|
return bytesToString(header) === 'OTTO'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function isType1File(file) { |
|
|
|
|
var header = file.peekBytes(2); |
|
|
|
|
// All Type1 font programs must begin with the comment '%!' (0x25 + 0x21).
|
|
|
|
|