Browse Source

PDF.js version 1.0.473

master v1.0.473
Yury Delendik 10 years ago
parent
commit
5a11f02583
  1. 2
      bower.json
  2. 41
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 41
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.0.471", "version": "1.0.473",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",
"pdf", "pdf",

41
build/pdf.combined.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.471'; PDFJS.version = '1.0.473';
PDFJS.build = 'faa9020'; PDFJS.build = '1694cd8';
(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
@ -28872,19 +28872,29 @@ var Font = (function FontClosure() {
this.toFontChar = newMapping.toFontChar; this.toFontChar = newMapping.toFontChar;
var numGlyphs = font.numGlyphs; var numGlyphs = font.numGlyphs;
function getCharCode(charCodeToGlyphId, glyphId, addMap) { function getCharCodes(charCodeToGlyphId, glyphId) {
var charCodes = null;
for (var charCode in charCodeToGlyphId) {
if (glyphId === charCodeToGlyphId[charCode]) {
if (!charCodes) {
charCodes = [];
}
charCodes.push(charCode | 0);
}
}
return charCodes;
}
function createCharCode(charCodeToGlyphId, glyphId) {
for (var charCode in charCodeToGlyphId) { for (var charCode in charCodeToGlyphId) {
if (glyphId === charCodeToGlyphId[charCode]) { if (glyphId === charCodeToGlyphId[charCode]) {
return charCode | 0; return charCode | 0;
} }
} }
if (addMap) {
newMapping.charCodeToGlyphId[newMapping.nextAvailableFontCharCode] = newMapping.charCodeToGlyphId[newMapping.nextAvailableFontCharCode] =
glyphId; glyphId;
return newMapping.nextAvailableFontCharCode++; return newMapping.nextAvailableFontCharCode++;
} }
return null;
}
var seacs = font.seacs; var seacs = font.seacs;
if (SEAC_ANALYSIS_ENABLED && seacs && seacs.length) { if (SEAC_ANALYSIS_ENABLED && seacs && seacs.length) {
@ -28906,25 +28916,28 @@ var Font = (function FontClosure() {
y: seac[0] * matrix[1] + seac[1] * matrix[3] + matrix[5] y: seac[0] * matrix[1] + seac[1] * matrix[3] + matrix[5]
}; };
var charCode = getCharCode(mapping, glyphId); var charCodes = getCharCodes(mapping, glyphId);
if (charCode === null) { if (!charCodes) {
// There's no point in mapping it if the char code was never mapped // There's no point in mapping it if the char code was never mapped
// to begin with. // to begin with.
continue; continue;
} }
// Find a fontCharCode that maps to the base and accent glyphs. If one for (var i = 0, ii = charCodes.length; i < ii; i++) {
// doesn't exists, create it. var charCode = charCodes[i];
// Find a fontCharCode that maps to the base and accent glyphs.
// If one doesn't exists, create it.
var charCodeToGlyphId = newMapping.charCodeToGlyphId; var charCodeToGlyphId = newMapping.charCodeToGlyphId;
var baseFontCharCode = getCharCode(charCodeToGlyphId, baseGlyphId, var baseFontCharCode = createCharCode(charCodeToGlyphId,
true); baseGlyphId);
var accentFontCharCode = getCharCode(charCodeToGlyphId, accentGlyphId, var accentFontCharCode = createCharCode(charCodeToGlyphId,
true); accentGlyphId);
seacMap[charCode] = { seacMap[charCode] = {
baseFontCharCode: baseFontCharCode, baseFontCharCode: baseFontCharCode,
accentFontCharCode: accentFontCharCode, accentFontCharCode: accentFontCharCode,
accentOffset: accentOffset accentOffset: accentOffset
}; };
} }
}
properties.seacMap = seacMap; properties.seacMap = seacMap;
} }

4
build/pdf.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.471'; PDFJS.version = '1.0.473';
PDFJS.build = 'faa9020'; PDFJS.build = '1694cd8';
(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

41
build/pdf.worker.js vendored

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.471'; PDFJS.version = '1.0.473';
PDFJS.build = 'faa9020'; PDFJS.build = '1694cd8';
(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
@ -24018,19 +24018,29 @@ var Font = (function FontClosure() {
this.toFontChar = newMapping.toFontChar; this.toFontChar = newMapping.toFontChar;
var numGlyphs = font.numGlyphs; var numGlyphs = font.numGlyphs;
function getCharCode(charCodeToGlyphId, glyphId, addMap) { function getCharCodes(charCodeToGlyphId, glyphId) {
var charCodes = null;
for (var charCode in charCodeToGlyphId) {
if (glyphId === charCodeToGlyphId[charCode]) {
if (!charCodes) {
charCodes = [];
}
charCodes.push(charCode | 0);
}
}
return charCodes;
}
function createCharCode(charCodeToGlyphId, glyphId) {
for (var charCode in charCodeToGlyphId) { for (var charCode in charCodeToGlyphId) {
if (glyphId === charCodeToGlyphId[charCode]) { if (glyphId === charCodeToGlyphId[charCode]) {
return charCode | 0; return charCode | 0;
} }
} }
if (addMap) {
newMapping.charCodeToGlyphId[newMapping.nextAvailableFontCharCode] = newMapping.charCodeToGlyphId[newMapping.nextAvailableFontCharCode] =
glyphId; glyphId;
return newMapping.nextAvailableFontCharCode++; return newMapping.nextAvailableFontCharCode++;
} }
return null;
}
var seacs = font.seacs; var seacs = font.seacs;
if (SEAC_ANALYSIS_ENABLED && seacs && seacs.length) { if (SEAC_ANALYSIS_ENABLED && seacs && seacs.length) {
@ -24052,25 +24062,28 @@ var Font = (function FontClosure() {
y: seac[0] * matrix[1] + seac[1] * matrix[3] + matrix[5] y: seac[0] * matrix[1] + seac[1] * matrix[3] + matrix[5]
}; };
var charCode = getCharCode(mapping, glyphId); var charCodes = getCharCodes(mapping, glyphId);
if (charCode === null) { if (!charCodes) {
// There's no point in mapping it if the char code was never mapped // There's no point in mapping it if the char code was never mapped
// to begin with. // to begin with.
continue; continue;
} }
// Find a fontCharCode that maps to the base and accent glyphs. If one for (var i = 0, ii = charCodes.length; i < ii; i++) {
// doesn't exists, create it. var charCode = charCodes[i];
// Find a fontCharCode that maps to the base and accent glyphs.
// If one doesn't exists, create it.
var charCodeToGlyphId = newMapping.charCodeToGlyphId; var charCodeToGlyphId = newMapping.charCodeToGlyphId;
var baseFontCharCode = getCharCode(charCodeToGlyphId, baseGlyphId, var baseFontCharCode = createCharCode(charCodeToGlyphId,
true); baseGlyphId);
var accentFontCharCode = getCharCode(charCodeToGlyphId, accentGlyphId, var accentFontCharCode = createCharCode(charCodeToGlyphId,
true); accentGlyphId);
seacMap[charCode] = { seacMap[charCode] = {
baseFontCharCode: baseFontCharCode, baseFontCharCode: baseFontCharCode,
accentFontCharCode: accentFontCharCode, accentFontCharCode: accentFontCharCode,
accentOffset: accentOffset accentOffset: accentOffset
}; };
} }
}
properties.seacMap = seacMap; properties.seacMap = seacMap;
} }

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.0.471", "version": "1.0.473",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",

Loading…
Cancel
Save