Browse Source

PDF.js version 1.0.655

master v1.0.655
Yury Delendik 11 years ago
parent
commit
8c89f457fe
  1. 2
      bower.json
  2. 21
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 21
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

21
build/pdf.combined.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.653'; PDFJS.version = '1.0.655';
PDFJS.build = '41a5bce'; PDFJS.build = 'c369150';
(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
@ -17733,7 +17733,7 @@ var CMap = (function CMapClosure() {
return this._map; return this._map;
}, },
readCharCode: function(str, offset) { readCharCode: function(str, offset, out) {
var c = 0; var c = 0;
var codespaceRanges = this.codespaceRanges; var codespaceRanges = this.codespaceRanges;
var codespaceRangesLen = this.codespaceRanges.length; var codespaceRangesLen = this.codespaceRanges.length;
@ -17747,12 +17747,14 @@ var CMap = (function CMapClosure() {
var low = codespaceRange[k++]; var low = codespaceRange[k++];
var high = codespaceRange[k++]; var high = codespaceRange[k++];
if (c >= low && c <= high) { if (c >= low && c <= high) {
return [c, n + 1]; out.charcode = c;
out.length = n + 1;
return;
} }
} }
} }
out.charcode = 0;
return [0, 1]; out.length = 1;
} }
}; };
return CMap; return CMap;
@ -22958,10 +22960,11 @@ var Font = (function FontClosure() {
if (this.cMap) { if (this.cMap) {
// composite fonts have multi-byte strings convert the string from // composite fonts have multi-byte strings convert the string from
// single-byte to multi-byte // single-byte to multi-byte
var c = {};
while (i < chars.length) { while (i < chars.length) {
var c = this.cMap.readCharCode(chars, i); this.cMap.readCharCode(chars, i, c);
charcode = c[0]; charcode = c.charcode;
var length = c[1]; var length = c.length;
i += length; i += length;
glyph = this.charToGlyph(charcode); glyph = this.charToGlyph(charcode);
glyphs.push(glyph); glyphs.push(glyph);

4
build/pdf.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.653'; PDFJS.version = '1.0.655';
PDFJS.build = '41a5bce'; PDFJS.build = 'c369150';
(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

21
build/pdf.worker.js vendored

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.653'; PDFJS.version = '1.0.655';
PDFJS.build = '41a5bce'; PDFJS.build = 'c369150';
(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
@ -12876,7 +12876,7 @@ var CMap = (function CMapClosure() {
return this._map; return this._map;
}, },
readCharCode: function(str, offset) { readCharCode: function(str, offset, out) {
var c = 0; var c = 0;
var codespaceRanges = this.codespaceRanges; var codespaceRanges = this.codespaceRanges;
var codespaceRangesLen = this.codespaceRanges.length; var codespaceRangesLen = this.codespaceRanges.length;
@ -12890,12 +12890,14 @@ var CMap = (function CMapClosure() {
var low = codespaceRange[k++]; var low = codespaceRange[k++];
var high = codespaceRange[k++]; var high = codespaceRange[k++];
if (c >= low && c <= high) { if (c >= low && c <= high) {
return [c, n + 1]; out.charcode = c;
out.length = n + 1;
return;
} }
} }
} }
out.charcode = 0;
return [0, 1]; out.length = 1;
} }
}; };
return CMap; return CMap;
@ -18101,10 +18103,11 @@ var Font = (function FontClosure() {
if (this.cMap) { if (this.cMap) {
// composite fonts have multi-byte strings convert the string from // composite fonts have multi-byte strings convert the string from
// single-byte to multi-byte // single-byte to multi-byte
var c = {};
while (i < chars.length) { while (i < chars.length) {
var c = this.cMap.readCharCode(chars, i); this.cMap.readCharCode(chars, i, c);
charcode = c[0]; charcode = c.charcode;
var length = c[1]; var length = c.length;
i += length; i += length;
glyph = this.charToGlyph(charcode); glyph = this.charToGlyph(charcode);
glyphs.push(glyph); glyphs.push(glyph);

2
package.json

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