|
|
@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PDFJS.version = '1.1.444'; |
|
|
|
PDFJS.version = '1.1.446'; |
|
|
|
PDFJS.build = '3daae40'; |
|
|
|
PDFJS.build = 'ded4f31'; |
|
|
|
|
|
|
|
|
|
|
|
(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
|
|
|
@ -24053,7 +24053,7 @@ var Font = (function FontClosure() { |
|
|
|
* Read the appropriate subtable from the cmap according to 9.6.6.4 from |
|
|
|
* Read the appropriate subtable from the cmap according to 9.6.6.4 from |
|
|
|
* PDF spec |
|
|
|
* PDF spec |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function readCmapTable(cmap, font, isSymbolicFont) { |
|
|
|
function readCmapTable(cmap, font, isSymbolicFont, hasEncoding) { |
|
|
|
var segment; |
|
|
|
var segment; |
|
|
|
var start = (font.start ? font.start : 0) + cmap.offset; |
|
|
|
var start = (font.start ? font.start : 0) + cmap.offset; |
|
|
|
font.pos = start; |
|
|
|
font.pos = start; |
|
|
@ -24084,7 +24084,7 @@ var Font = (function FontClosure() { |
|
|
|
// Continue the loop since there still may be a higher priority
|
|
|
|
// Continue the loop since there still may be a higher priority
|
|
|
|
// table.
|
|
|
|
// table.
|
|
|
|
} else if (platformId === 3 && encodingId === 1 && |
|
|
|
} else if (platformId === 3 && encodingId === 1 && |
|
|
|
(!isSymbolicFont || !potentialTable)) { |
|
|
|
((!isSymbolicFont && hasEncoding) || !potentialTable)) { |
|
|
|
useTable = true; |
|
|
|
useTable = true; |
|
|
|
if (!isSymbolicFont) { |
|
|
|
if (!isSymbolicFont) { |
|
|
|
canBreak = true; |
|
|
|
canBreak = true; |
|
|
@ -25033,13 +25033,14 @@ var Font = (function FontClosure() { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// Most of the following logic in this code branch is based on the
|
|
|
|
// Most of the following logic in this code branch is based on the
|
|
|
|
// 9.6.6.4 of the PDF spec.
|
|
|
|
// 9.6.6.4 of the PDF spec.
|
|
|
|
var cmapTable = readCmapTable(tables.cmap, font, this.isSymbolicFont); |
|
|
|
var hasEncoding = |
|
|
|
|
|
|
|
properties.differences.length > 0 || !!properties.baseEncodingName; |
|
|
|
|
|
|
|
var cmapTable = |
|
|
|
|
|
|
|
readCmapTable(tables.cmap, font, this.isSymbolicFont, hasEncoding); |
|
|
|
var cmapPlatformId = cmapTable.platformId; |
|
|
|
var cmapPlatformId = cmapTable.platformId; |
|
|
|
var cmapEncodingId = cmapTable.encodingId; |
|
|
|
var cmapEncodingId = cmapTable.encodingId; |
|
|
|
var cmapMappings = cmapTable.mappings; |
|
|
|
var cmapMappings = cmapTable.mappings; |
|
|
|
var cmapMappingsLength = cmapMappings.length; |
|
|
|
var cmapMappingsLength = cmapMappings.length; |
|
|
|
var hasEncoding = properties.differences.length || |
|
|
|
|
|
|
|
!!properties.baseEncodingName; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// The spec seems to imply that if the font is symbolic the encoding
|
|
|
|
// The spec seems to imply that if the font is symbolic the encoding
|
|
|
|
// should be ignored, this doesn't appear to work for 'preistabelle.pdf'
|
|
|
|
// should be ignored, this doesn't appear to work for 'preistabelle.pdf'
|
|
|
|