Browse Source

PDF.js version 1.0.425

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

2
bower.json

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

19
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.423'; PDFJS.version = '1.0.425';
PDFJS.build = '6d86c92'; PDFJS.build = 'c28839b';
(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
@ -26897,7 +26897,7 @@ var Glyph = (function GlyphClosure() {
*/ */
var Font = (function FontClosure() { var Font = (function FontClosure() {
function Font(name, file, properties) { function Font(name, file, properties) {
var charCode; var charCode, glyphName;
this.name = name; this.name = name;
this.loadedName = properties.loadedName; this.loadedName = properties.loadedName;
@ -26998,13 +26998,20 @@ var Font = (function FontClosure() {
} else if (isStandardFont) { } else if (isStandardFont) {
this.toFontChar = []; this.toFontChar = [];
for (charCode in properties.defaultEncoding) { for (charCode in properties.defaultEncoding) {
var glyphName = properties.differences[charCode] || glyphName = (properties.differences[charCode] ||
properties.defaultEncoding[charCode]; properties.defaultEncoding[charCode]);
this.toFontChar[charCode] = GlyphsUnicode[glyphName]; this.toFontChar[charCode] = GlyphsUnicode[glyphName];
} }
} else { } else {
var unicodeCharCode, notCidFont = (type.indexOf('CIDFontType') === -1);
for (charCode in this.toUnicode) { for (charCode in this.toUnicode) {
this.toFontChar[charCode] = this.toUnicode[charCode].charCodeAt(0); unicodeCharCode = this.toUnicode[charCode].charCodeAt(0);
if (notCidFont) {
glyphName = (properties.differences[charCode] ||
properties.defaultEncoding[charCode]);
unicodeCharCode = (GlyphsUnicode[glyphName] || unicodeCharCode);
}
this.toFontChar[charCode] = unicodeCharCode;
} }
} }
this.loadedName = fontName.split('-')[0]; this.loadedName = fontName.split('-')[0];

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.423'; PDFJS.version = '1.0.425';
PDFJS.build = '6d86c92'; PDFJS.build = 'c28839b';
(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

19
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.423'; PDFJS.version = '1.0.425';
PDFJS.build = '6d86c92'; PDFJS.build = 'c28839b';
(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
@ -22061,7 +22061,7 @@ var Glyph = (function GlyphClosure() {
*/ */
var Font = (function FontClosure() { var Font = (function FontClosure() {
function Font(name, file, properties) { function Font(name, file, properties) {
var charCode; var charCode, glyphName;
this.name = name; this.name = name;
this.loadedName = properties.loadedName; this.loadedName = properties.loadedName;
@ -22162,13 +22162,20 @@ var Font = (function FontClosure() {
} else if (isStandardFont) { } else if (isStandardFont) {
this.toFontChar = []; this.toFontChar = [];
for (charCode in properties.defaultEncoding) { for (charCode in properties.defaultEncoding) {
var glyphName = properties.differences[charCode] || glyphName = (properties.differences[charCode] ||
properties.defaultEncoding[charCode]; properties.defaultEncoding[charCode]);
this.toFontChar[charCode] = GlyphsUnicode[glyphName]; this.toFontChar[charCode] = GlyphsUnicode[glyphName];
} }
} else { } else {
var unicodeCharCode, notCidFont = (type.indexOf('CIDFontType') === -1);
for (charCode in this.toUnicode) { for (charCode in this.toUnicode) {
this.toFontChar[charCode] = this.toUnicode[charCode].charCodeAt(0); unicodeCharCode = this.toUnicode[charCode].charCodeAt(0);
if (notCidFont) {
glyphName = (properties.differences[charCode] ||
properties.defaultEncoding[charCode]);
unicodeCharCode = (GlyphsUnicode[glyphName] || unicodeCharCode);
}
this.toFontChar[charCode] = unicodeCharCode;
} }
} }
this.loadedName = fontName.split('-')[0]; this.loadedName = fontName.split('-')[0];

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.0.423", "version": "1.0.425",
"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