Browse Source

PDF.js version 1.3.46 - See mozilla/pdf.js@4a82f2f5fde3e2a9a43b0f0130f2221cfa3f764b

master v1.3.46
Pdf Bot 9 years ago
parent
commit
6f9e098cc8
  1. 2
      bower.json
  2. 25
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 25
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

25
build/pdf.combined.js

@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.3.44'; PDFJS.version = '1.3.46';
PDFJS.build = '361fa83'; PDFJS.build = '4a82f2f';
(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
@ -38635,17 +38635,32 @@ var Lexer = (function LexerClosure() {
return strBuf.join(''); return strBuf.join('');
}, },
getName: function Lexer_getName() { getName: function Lexer_getName() {
var ch; var ch, previousCh;
var strBuf = this.strBuf; var strBuf = this.strBuf;
strBuf.length = 0; strBuf.length = 0;
while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) { while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
if (ch === 0x23) { // '#' if (ch === 0x23) { // '#'
ch = this.nextChar(); ch = this.nextChar();
if (specialChars[ch]) {
warn('Lexer_getName: ' +
'NUMBER SIGN (#) should be followed by a hexadecimal number.');
strBuf.push('#');
break;
}
var x = toHexDigit(ch); var x = toHexDigit(ch);
if (x !== -1) { if (x !== -1) {
var x2 = toHexDigit(this.nextChar()); previousCh = ch;
ch = this.nextChar();
var x2 = toHexDigit(ch);
if (x2 === -1) { if (x2 === -1) {
error('Illegal digit in hex char in name: ' + x2); warn('Lexer_getName: Illegal digit (' +
String.fromCharCode(ch) +') in hexadecimal number.');
strBuf.push('#', String.fromCharCode(previousCh));
if (specialChars[ch]) {
break;
}
strBuf.push(String.fromCharCode(ch));
continue;
} }
strBuf.push(String.fromCharCode((x << 4) | x2)); strBuf.push(String.fromCharCode((x << 4) | x2));
} else { } else {

4
build/pdf.js

@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.3.44'; PDFJS.version = '1.3.46';
PDFJS.build = '361fa83'; PDFJS.build = '4a82f2f';
(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

25
build/pdf.worker.js vendored

@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.3.44'; PDFJS.version = '1.3.46';
PDFJS.build = '361fa83'; PDFJS.build = '4a82f2f';
(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
@ -31562,17 +31562,32 @@ var Lexer = (function LexerClosure() {
return strBuf.join(''); return strBuf.join('');
}, },
getName: function Lexer_getName() { getName: function Lexer_getName() {
var ch; var ch, previousCh;
var strBuf = this.strBuf; var strBuf = this.strBuf;
strBuf.length = 0; strBuf.length = 0;
while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) { while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
if (ch === 0x23) { // '#' if (ch === 0x23) { // '#'
ch = this.nextChar(); ch = this.nextChar();
if (specialChars[ch]) {
warn('Lexer_getName: ' +
'NUMBER SIGN (#) should be followed by a hexadecimal number.');
strBuf.push('#');
break;
}
var x = toHexDigit(ch); var x = toHexDigit(ch);
if (x !== -1) { if (x !== -1) {
var x2 = toHexDigit(this.nextChar()); previousCh = ch;
ch = this.nextChar();
var x2 = toHexDigit(ch);
if (x2 === -1) { if (x2 === -1) {
error('Illegal digit in hex char in name: ' + x2); warn('Lexer_getName: Illegal digit (' +
String.fromCharCode(ch) +') in hexadecimal number.');
strBuf.push('#', String.fromCharCode(previousCh));
if (specialChars[ch]) {
break;
}
strBuf.push(String.fromCharCode(ch));
continue;
} }
strBuf.push(String.fromCharCode((x << 4) | x2)); strBuf.push(String.fromCharCode((x << 4) | x2));
} else { } else {

2
package.json

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