Browse Source

PDF.js version 1.8.514 - See mozilla/pdf.js@eff257b8204c1816b8bfb660a3c5446bc06581b3

master v1.8.514
pdfjsbot 8 years ago
parent
commit
40208768ad
  1. 2
      bower.json
  2. 57
      build/pdf.combined.js
  3. 2
      build/pdf.combined.js.map
  4. 12
      build/pdf.js
  5. 2
      build/pdf.js.map
  6. 4
      build/pdf.min.js
  7. 49
      build/pdf.worker.js
  8. 2
      build/pdf.worker.js.map
  9. 12
      build/pdf.worker.min.js
  10. 45
      lib/core/fonts.js
  11. 4
      lib/display/api.js
  12. 4
      lib/display/global.js
  13. 4
      lib/pdf.js
  14. 4
      lib/pdf.worker.js
  15. 2
      package.json

2
bower.json

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

57
build/pdf.combined.js

@ -13125,8 +13125,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -13125,8 +13125,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.8.512';
exports.build = build = '05b1ef2d';
exports.version = version = '1.8.514';
exports.build = build = 'eff257b8';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -28631,8 +28631,8 @@ if (!_util.globalScope.PDFJS) { @@ -28631,8 +28631,8 @@ if (!_util.globalScope.PDFJS) {
}
var PDFJS = _util.globalScope.PDFJS;
{
PDFJS.version = '1.8.512';
PDFJS.build = '05b1ef2d';
PDFJS.version = '1.8.514';
PDFJS.build = 'eff257b8';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -35204,7 +35204,7 @@ var Font = function FontClosure() { @@ -35204,7 +35204,7 @@ var Font = function FontClosure() {
}
return !(i & 1);
}
function adjustMapping(charCodeToGlyphId, properties) {
function adjustMapping(charCodeToGlyphId, properties, missingGlyphs) {
var toUnicode = properties.toUnicode;
var isSymbolic = !!(properties.flags & FontFlags.Symbolic);
var isIdentityUnicode = properties.toUnicode instanceof IdentityToUnicodeMap;
@ -35224,7 +35224,7 @@ var Font = function FontClosure() { @@ -35224,7 +35224,7 @@ var Font = function FontClosure() {
fontCharCode = unicode.charCodeAt(0);
}
}
if ((usedFontCharCodes[fontCharCode] !== undefined || isProblematicUnicodeLocation(fontCharCode) || isSymbolic && !hasUnicodeValue) && nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END) {
if (!missingGlyphs[glyphId] && (usedFontCharCodes[fontCharCode] !== undefined || isProblematicUnicodeLocation(fontCharCode) || isSymbolic && !hasUnicodeValue) && nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END) {
do {
fontCharCode = nextAvailableFontCharCode++;
if (SKIP_PRIVATE_USE_RANGE_F000_TO_F01F && fontCharCode === 0xF000) {
@ -35827,22 +35827,22 @@ var Font = function FontClosure() { @@ -35827,22 +35827,22 @@ var Font = function FontClosure() {
var startOffset = itemDecode(locaData, 0);
var writeOffset = 0;
var missingGlyphData = Object.create(null);
missingGlyphData[0] = true;
itemEncode(locaData, 0, writeOffset);
var i, j;
for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
var locaCount = dupFirstEntry ? numGlyphs - 1 : numGlyphs;
for (i = 0, j = itemSize; i < locaCount; i++, j += itemSize) {
var endOffset = itemDecode(locaData, j);
if (endOffset > oldGlyfDataLength && (oldGlyfDataLength + 3 & ~3) === endOffset) {
endOffset = oldGlyfDataLength;
}
if (endOffset > oldGlyfDataLength) {
itemEncode(locaData, j, writeOffset);
startOffset = endOffset;
continue;
}
if (startOffset === endOffset) {
var newLength = sanitizeGlyph(oldGlyfData, startOffset, endOffset, newGlyfData, writeOffset, hintsValid);
if (newLength === 0) {
missingGlyphData[i] = true;
}
var newLength = sanitizeGlyph(oldGlyfData, startOffset, endOffset, newGlyfData, writeOffset, hintsValid);
writeOffset += newLength;
itemEncode(locaData, j, writeOffset);
startOffset = endOffset;
@ -36329,20 +36329,8 @@ var Font = function FontClosure() { @@ -36329,20 +36329,8 @@ var Font = function FontClosure() {
}
var charCodeToGlyphId = [],
charCode;
var toUnicode = properties.toUnicode,
widths = properties.widths;
var skipToUnicode = toUnicode instanceof IdentityToUnicodeMap || toUnicode.length === 0x10000;
function hasGlyph(glyphId, charCode, widthCode) {
if (!missingGlyphs[glyphId]) {
return true;
}
if (!skipToUnicode && charCode >= 0 && toUnicode.has(charCode)) {
return true;
}
if (widths && widthCode >= 0 && (0, _util.isNum)(widths[widthCode])) {
return true;
}
return false;
function hasGlyph(glyphId) {
return !missingGlyphs[glyphId];
}
if (properties.composite) {
var cidToGidMap = properties.cidToGidMap || [];
@ -36355,7 +36343,7 @@ var Font = function FontClosure() { @@ -36355,7 +36343,7 @@ var Font = function FontClosure() {
} else if (cidToGidMap[cid] !== undefined) {
glyphId = cidToGidMap[cid];
}
if (glyphId >= 0 && glyphId < numGlyphs && hasGlyph(glyphId, charCode, cid)) {
if (glyphId >= 0 && glyphId < numGlyphs && hasGlyph(glyphId)) {
charCodeToGlyphId[charCode] = glyphId;
}
});
@ -36387,11 +36375,9 @@ var Font = function FontClosure() { @@ -36387,11 +36375,9 @@ var Font = function FontClosure() {
continue;
}
standardGlyphName = recoverGlyphName(glyphName, glyphsUnicodeMap);
var unicodeOrCharCode,
isUnicode = false;
var unicodeOrCharCode;
if (cmapPlatformId === 3 && cmapEncodingId === 1) {
unicodeOrCharCode = glyphsUnicodeMap[standardGlyphName];
isUnicode = true;
} else if (cmapPlatformId === 1 && cmapEncodingId === 0) {
unicodeOrCharCode = _encodings.MacRomanEncoding.indexOf(standardGlyphName);
}
@ -36400,8 +36386,7 @@ var Font = function FontClosure() { @@ -36400,8 +36386,7 @@ var Font = function FontClosure() {
if (cmapMappings[i].charCode !== unicodeOrCharCode) {
continue;
}
var code = isUnicode ? charCode : unicodeOrCharCode;
if (hasGlyph(cmapMappings[i].glyphId, code, -1)) {
if (hasGlyph(cmapMappings[i].glyphId)) {
charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
found = true;
break;
@ -36412,7 +36397,7 @@ var Font = function FontClosure() { @@ -36412,7 +36397,7 @@ var Font = function FontClosure() {
if (glyphId === -1 && standardGlyphName !== glyphName) {
glyphId = properties.glyphNames.indexOf(standardGlyphName);
}
if (glyphId > 0 && hasGlyph(glyphId, -1, -1)) {
if (glyphId > 0 && hasGlyph(glyphId)) {
charCodeToGlyphId[charCode] = glyphId;
found = true;
}
@ -36438,7 +36423,7 @@ var Font = function FontClosure() { @@ -36438,7 +36423,7 @@ var Font = function FontClosure() {
if (charCodeToGlyphId.length === 0) {
charCodeToGlyphId[0] = 0;
}
var newMapping = adjustMapping(charCodeToGlyphId, properties);
var newMapping = adjustMapping(charCodeToGlyphId, properties, missingGlyphs);
this.toFontChar = newMapping.toFontChar;
tables['cmap'] = {
tag: 'cmap',
@ -36488,7 +36473,7 @@ var Font = function FontClosure() { @@ -36488,7 +36473,7 @@ var Font = function FontClosure() {
adjustToUnicode(properties, properties.builtInEncoding);
}
var mapping = font.getGlyphMapping(properties);
var newMapping = adjustMapping(mapping, properties);
var newMapping = adjustMapping(mapping, properties, Object.create(null));
this.toFontChar = newMapping.toFontChar;
var numGlyphs = font.numGlyphs;
function getCharCodes(charCodeToGlyphId, glyphId) {
@ -47254,8 +47239,8 @@ exports.TilingPattern = TilingPattern; @@ -47254,8 +47239,8 @@ exports.TilingPattern = TilingPattern;
"use strict";
var pdfjsVersion = '1.8.512';
var pdfjsBuild = '05b1ef2d';
var pdfjsVersion = '1.8.514';
var pdfjsBuild = 'eff257b8';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(26);
var pdfjsDisplayAPI = __w_pdfjs_require__(10);

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

12
build/pdf.js

@ -3854,8 +3854,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -3854,8 +3854,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.8.512';
exports.build = build = '05b1ef2d';
exports.version = version = '1.8.514';
exports.build = build = 'eff257b8';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -5912,8 +5912,8 @@ if (!_util.globalScope.PDFJS) { @@ -5912,8 +5912,8 @@ if (!_util.globalScope.PDFJS) {
}
var PDFJS = _util.globalScope.PDFJS;
{
PDFJS.version = '1.8.512';
PDFJS.build = '05b1ef2d';
PDFJS.version = '1.8.514';
PDFJS.build = 'eff257b8';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -11452,8 +11452,8 @@ exports.TilingPattern = TilingPattern; @@ -11452,8 +11452,8 @@ exports.TilingPattern = TilingPattern;
"use strict";
var pdfjsVersion = '1.8.512';
var pdfjsBuild = '05b1ef2d';
var pdfjsVersion = '1.8.514';
var pdfjsBuild = 'eff257b8';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(9);
var pdfjsDisplayAPI = __w_pdfjs_require__(3);

2
build/pdf.js.map

File diff suppressed because one or more lines are too long

4
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

49
build/pdf.worker.js vendored

@ -31259,7 +31259,7 @@ var Font = function FontClosure() { @@ -31259,7 +31259,7 @@ var Font = function FontClosure() {
}
return !(i & 1);
}
function adjustMapping(charCodeToGlyphId, properties) {
function adjustMapping(charCodeToGlyphId, properties, missingGlyphs) {
var toUnicode = properties.toUnicode;
var isSymbolic = !!(properties.flags & FontFlags.Symbolic);
var isIdentityUnicode = properties.toUnicode instanceof IdentityToUnicodeMap;
@ -31279,7 +31279,7 @@ var Font = function FontClosure() { @@ -31279,7 +31279,7 @@ var Font = function FontClosure() {
fontCharCode = unicode.charCodeAt(0);
}
}
if ((usedFontCharCodes[fontCharCode] !== undefined || isProblematicUnicodeLocation(fontCharCode) || isSymbolic && !hasUnicodeValue) && nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END) {
if (!missingGlyphs[glyphId] && (usedFontCharCodes[fontCharCode] !== undefined || isProblematicUnicodeLocation(fontCharCode) || isSymbolic && !hasUnicodeValue) && nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END) {
do {
fontCharCode = nextAvailableFontCharCode++;
if (SKIP_PRIVATE_USE_RANGE_F000_TO_F01F && fontCharCode === 0xF000) {
@ -31882,22 +31882,22 @@ var Font = function FontClosure() { @@ -31882,22 +31882,22 @@ var Font = function FontClosure() {
var startOffset = itemDecode(locaData, 0);
var writeOffset = 0;
var missingGlyphData = Object.create(null);
missingGlyphData[0] = true;
itemEncode(locaData, 0, writeOffset);
var i, j;
for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
var locaCount = dupFirstEntry ? numGlyphs - 1 : numGlyphs;
for (i = 0, j = itemSize; i < locaCount; i++, j += itemSize) {
var endOffset = itemDecode(locaData, j);
if (endOffset > oldGlyfDataLength && (oldGlyfDataLength + 3 & ~3) === endOffset) {
endOffset = oldGlyfDataLength;
}
if (endOffset > oldGlyfDataLength) {
itemEncode(locaData, j, writeOffset);
startOffset = endOffset;
continue;
}
if (startOffset === endOffset) {
var newLength = sanitizeGlyph(oldGlyfData, startOffset, endOffset, newGlyfData, writeOffset, hintsValid);
if (newLength === 0) {
missingGlyphData[i] = true;
}
var newLength = sanitizeGlyph(oldGlyfData, startOffset, endOffset, newGlyfData, writeOffset, hintsValid);
writeOffset += newLength;
itemEncode(locaData, j, writeOffset);
startOffset = endOffset;
@ -32384,20 +32384,8 @@ var Font = function FontClosure() { @@ -32384,20 +32384,8 @@ var Font = function FontClosure() {
}
var charCodeToGlyphId = [],
charCode;
var toUnicode = properties.toUnicode,
widths = properties.widths;
var skipToUnicode = toUnicode instanceof IdentityToUnicodeMap || toUnicode.length === 0x10000;
function hasGlyph(glyphId, charCode, widthCode) {
if (!missingGlyphs[glyphId]) {
return true;
}
if (!skipToUnicode && charCode >= 0 && toUnicode.has(charCode)) {
return true;
}
if (widths && widthCode >= 0 && (0, _util.isNum)(widths[widthCode])) {
return true;
}
return false;
function hasGlyph(glyphId) {
return !missingGlyphs[glyphId];
}
if (properties.composite) {
var cidToGidMap = properties.cidToGidMap || [];
@ -32410,7 +32398,7 @@ var Font = function FontClosure() { @@ -32410,7 +32398,7 @@ var Font = function FontClosure() {
} else if (cidToGidMap[cid] !== undefined) {
glyphId = cidToGidMap[cid];
}
if (glyphId >= 0 && glyphId < numGlyphs && hasGlyph(glyphId, charCode, cid)) {
if (glyphId >= 0 && glyphId < numGlyphs && hasGlyph(glyphId)) {
charCodeToGlyphId[charCode] = glyphId;
}
});
@ -32442,11 +32430,9 @@ var Font = function FontClosure() { @@ -32442,11 +32430,9 @@ var Font = function FontClosure() {
continue;
}
standardGlyphName = recoverGlyphName(glyphName, glyphsUnicodeMap);
var unicodeOrCharCode,
isUnicode = false;
var unicodeOrCharCode;
if (cmapPlatformId === 3 && cmapEncodingId === 1) {
unicodeOrCharCode = glyphsUnicodeMap[standardGlyphName];
isUnicode = true;
} else if (cmapPlatformId === 1 && cmapEncodingId === 0) {
unicodeOrCharCode = _encodings.MacRomanEncoding.indexOf(standardGlyphName);
}
@ -32455,8 +32441,7 @@ var Font = function FontClosure() { @@ -32455,8 +32441,7 @@ var Font = function FontClosure() {
if (cmapMappings[i].charCode !== unicodeOrCharCode) {
continue;
}
var code = isUnicode ? charCode : unicodeOrCharCode;
if (hasGlyph(cmapMappings[i].glyphId, code, -1)) {
if (hasGlyph(cmapMappings[i].glyphId)) {
charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
found = true;
break;
@ -32467,7 +32452,7 @@ var Font = function FontClosure() { @@ -32467,7 +32452,7 @@ var Font = function FontClosure() {
if (glyphId === -1 && standardGlyphName !== glyphName) {
glyphId = properties.glyphNames.indexOf(standardGlyphName);
}
if (glyphId > 0 && hasGlyph(glyphId, -1, -1)) {
if (glyphId > 0 && hasGlyph(glyphId)) {
charCodeToGlyphId[charCode] = glyphId;
found = true;
}
@ -32493,7 +32478,7 @@ var Font = function FontClosure() { @@ -32493,7 +32478,7 @@ var Font = function FontClosure() {
if (charCodeToGlyphId.length === 0) {
charCodeToGlyphId[0] = 0;
}
var newMapping = adjustMapping(charCodeToGlyphId, properties);
var newMapping = adjustMapping(charCodeToGlyphId, properties, missingGlyphs);
this.toFontChar = newMapping.toFontChar;
tables['cmap'] = {
tag: 'cmap',
@ -32543,7 +32528,7 @@ var Font = function FontClosure() { @@ -32543,7 +32528,7 @@ var Font = function FontClosure() {
adjustToUnicode(properties, properties.builtInEncoding);
}
var mapping = font.getGlyphMapping(properties);
var newMapping = adjustMapping(mapping, properties);
var newMapping = adjustMapping(mapping, properties, Object.create(null));
this.toFontChar = newMapping.toFontChar;
var numGlyphs = font.numGlyphs;
function getCharCodes(charCodeToGlyphId, glyphId) {
@ -40407,8 +40392,8 @@ exports.Type1Parser = Type1Parser; @@ -40407,8 +40392,8 @@ exports.Type1Parser = Type1Parser;
"use strict";
var pdfjsVersion = '1.8.512';
var pdfjsBuild = '05b1ef2d';
var pdfjsVersion = '1.8.514';
var pdfjsBuild = 'eff257b8';
var pdfjsCoreWorker = __w_pdfjs_require__(8);
{
__w_pdfjs_require__(19);

2
build/pdf.worker.js.map vendored

File diff suppressed because one or more lines are too long

12
build/pdf.worker.min.js vendored

File diff suppressed because one or more lines are too long

45
lib/core/fonts.js

@ -558,7 +558,7 @@ var Font = function FontClosure() { @@ -558,7 +558,7 @@ var Font = function FontClosure() {
}
return !(i & 1);
}
function adjustMapping(charCodeToGlyphId, properties) {
function adjustMapping(charCodeToGlyphId, properties, missingGlyphs) {
var toUnicode = properties.toUnicode;
var isSymbolic = !!(properties.flags & FontFlags.Symbolic);
var isIdentityUnicode = properties.toUnicode instanceof IdentityToUnicodeMap;
@ -578,7 +578,7 @@ var Font = function FontClosure() { @@ -578,7 +578,7 @@ var Font = function FontClosure() {
fontCharCode = unicode.charCodeAt(0);
}
}
if ((usedFontCharCodes[fontCharCode] !== undefined || isProblematicUnicodeLocation(fontCharCode) || isSymbolic && !hasUnicodeValue) && nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END) {
if (!missingGlyphs[glyphId] && (usedFontCharCodes[fontCharCode] !== undefined || isProblematicUnicodeLocation(fontCharCode) || isSymbolic && !hasUnicodeValue) && nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END) {
do {
fontCharCode = nextAvailableFontCharCode++;
if (SKIP_PRIVATE_USE_RANGE_F000_TO_F01F && fontCharCode === 0xF000) {
@ -1181,22 +1181,22 @@ var Font = function FontClosure() { @@ -1181,22 +1181,22 @@ var Font = function FontClosure() {
var startOffset = itemDecode(locaData, 0);
var writeOffset = 0;
var missingGlyphData = Object.create(null);
missingGlyphData[0] = true;
itemEncode(locaData, 0, writeOffset);
var i, j;
for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
var locaCount = dupFirstEntry ? numGlyphs - 1 : numGlyphs;
for (i = 0, j = itemSize; i < locaCount; i++, j += itemSize) {
var endOffset = itemDecode(locaData, j);
if (endOffset > oldGlyfDataLength && (oldGlyfDataLength + 3 & ~3) === endOffset) {
endOffset = oldGlyfDataLength;
}
if (endOffset > oldGlyfDataLength) {
itemEncode(locaData, j, writeOffset);
startOffset = endOffset;
continue;
}
if (startOffset === endOffset) {
var newLength = sanitizeGlyph(oldGlyfData, startOffset, endOffset, newGlyfData, writeOffset, hintsValid);
if (newLength === 0) {
missingGlyphData[i] = true;
}
var newLength = sanitizeGlyph(oldGlyfData, startOffset, endOffset, newGlyfData, writeOffset, hintsValid);
writeOffset += newLength;
itemEncode(locaData, j, writeOffset);
startOffset = endOffset;
@ -1683,20 +1683,8 @@ var Font = function FontClosure() { @@ -1683,20 +1683,8 @@ var Font = function FontClosure() {
}
var charCodeToGlyphId = [],
charCode;
var toUnicode = properties.toUnicode,
widths = properties.widths;
var skipToUnicode = toUnicode instanceof IdentityToUnicodeMap || toUnicode.length === 0x10000;
function hasGlyph(glyphId, charCode, widthCode) {
if (!missingGlyphs[glyphId]) {
return true;
}
if (!skipToUnicode && charCode >= 0 && toUnicode.has(charCode)) {
return true;
}
if (widths && widthCode >= 0 && (0, _util.isNum)(widths[widthCode])) {
return true;
}
return false;
function hasGlyph(glyphId) {
return !missingGlyphs[glyphId];
}
if (properties.composite) {
var cidToGidMap = properties.cidToGidMap || [];
@ -1709,7 +1697,7 @@ var Font = function FontClosure() { @@ -1709,7 +1697,7 @@ var Font = function FontClosure() {
} else if (cidToGidMap[cid] !== undefined) {
glyphId = cidToGidMap[cid];
}
if (glyphId >= 0 && glyphId < numGlyphs && hasGlyph(glyphId, charCode, cid)) {
if (glyphId >= 0 && glyphId < numGlyphs && hasGlyph(glyphId)) {
charCodeToGlyphId[charCode] = glyphId;
}
});
@ -1741,11 +1729,9 @@ var Font = function FontClosure() { @@ -1741,11 +1729,9 @@ var Font = function FontClosure() {
continue;
}
standardGlyphName = recoverGlyphName(glyphName, glyphsUnicodeMap);
var unicodeOrCharCode,
isUnicode = false;
var unicodeOrCharCode;
if (cmapPlatformId === 3 && cmapEncodingId === 1) {
unicodeOrCharCode = glyphsUnicodeMap[standardGlyphName];
isUnicode = true;
} else if (cmapPlatformId === 1 && cmapEncodingId === 0) {
unicodeOrCharCode = _encodings.MacRomanEncoding.indexOf(standardGlyphName);
}
@ -1754,8 +1740,7 @@ var Font = function FontClosure() { @@ -1754,8 +1740,7 @@ var Font = function FontClosure() {
if (cmapMappings[i].charCode !== unicodeOrCharCode) {
continue;
}
var code = isUnicode ? charCode : unicodeOrCharCode;
if (hasGlyph(cmapMappings[i].glyphId, code, -1)) {
if (hasGlyph(cmapMappings[i].glyphId)) {
charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
found = true;
break;
@ -1766,7 +1751,7 @@ var Font = function FontClosure() { @@ -1766,7 +1751,7 @@ var Font = function FontClosure() {
if (glyphId === -1 && standardGlyphName !== glyphName) {
glyphId = properties.glyphNames.indexOf(standardGlyphName);
}
if (glyphId > 0 && hasGlyph(glyphId, -1, -1)) {
if (glyphId > 0 && hasGlyph(glyphId)) {
charCodeToGlyphId[charCode] = glyphId;
found = true;
}
@ -1792,7 +1777,7 @@ var Font = function FontClosure() { @@ -1792,7 +1777,7 @@ var Font = function FontClosure() {
if (charCodeToGlyphId.length === 0) {
charCodeToGlyphId[0] = 0;
}
var newMapping = adjustMapping(charCodeToGlyphId, properties);
var newMapping = adjustMapping(charCodeToGlyphId, properties, missingGlyphs);
this.toFontChar = newMapping.toFontChar;
tables['cmap'] = {
tag: 'cmap',
@ -1842,7 +1827,7 @@ var Font = function FontClosure() { @@ -1842,7 +1827,7 @@ var Font = function FontClosure() {
adjustToUnicode(properties, properties.builtInEncoding);
}
var mapping = font.getGlyphMapping(properties);
var newMapping = adjustMapping(mapping, properties);
var newMapping = adjustMapping(mapping, properties, Object.create(null));
this.toFontChar = newMapping.toFontChar;
var numGlyphs = font.numGlyphs;
function getCharCodes(charCodeToGlyphId, glyphId) {

4
lib/display/api.js

@ -1480,8 +1480,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -1480,8 +1480,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}();
var version, build;
{
exports.version = version = '1.8.512';
exports.build = build = '05b1ef2d';
exports.version = version = '1.8.514';
exports.build = build = 'eff257b8';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;

4
lib/display/global.js

@ -39,8 +39,8 @@ if (!_util.globalScope.PDFJS) { @@ -39,8 +39,8 @@ if (!_util.globalScope.PDFJS) {
}
var PDFJS = _util.globalScope.PDFJS;
{
PDFJS.version = '1.8.512';
PDFJS.build = '05b1ef2d';
PDFJS.version = '1.8.514';
PDFJS.build = 'eff257b8';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

4
lib/pdf.js

@ -14,8 +14,8 @@ @@ -14,8 +14,8 @@
*/
'use strict';
var pdfjsVersion = '1.8.512';
var pdfjsBuild = '05b1ef2d';
var pdfjsVersion = '1.8.514';
var pdfjsBuild = 'eff257b8';
var pdfjsSharedUtil = require('./shared/util.js');
var pdfjsDisplayGlobal = require('./display/global.js');
var pdfjsDisplayAPI = require('./display/api.js');

4
lib/pdf.worker.js vendored

@ -14,8 +14,8 @@ @@ -14,8 +14,8 @@
*/
'use strict';
var pdfjsVersion = '1.8.512';
var pdfjsBuild = '05b1ef2d';
var pdfjsVersion = '1.8.514';
var pdfjsBuild = 'eff257b8';
var pdfjsCoreWorker = require('./core/worker.js');
{
require('./core/network.js');

2
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.8.512",
"version": "1.8.514",
"main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.",
"keywords": [

Loading…
Cancel
Save