Browse Source

PDF.js version 1.3.165 - See mozilla/pdf.js@3057b69e450e1a5d29c2f0732ddc08d7d9861a34

master v1.3.165
Pdf Bot 9 years ago
parent
commit
b9d65960f9
  1. 2
      bower.json
  2. 18
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 18
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

18
build/pdf.combined.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.3.163'; var pdfjsVersion = '1.3.165';
var pdfjsBuild = '30b8f41'; var pdfjsBuild = '3057b69';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?
@ -35048,7 +35048,14 @@ var Font = (function FontClosure() {
} }
// Some CIDFontType0C fonts by mistake claim CIDFontType0. // Some CIDFontType0C fonts by mistake claim CIDFontType0.
if (type === 'CIDFontType0') { if (type === 'CIDFontType0') {
subtype = isType1File(file) ? 'CIDFontType0' : 'CIDFontType0C'; if (isType1File(file)) {
subtype = 'CIDFontType0';
} else if (isOpenTypeFile(file)) {
// Sometimes the type/subtype can be a complete lie (see issue6782.pdf).
type = subtype = 'OpenType';
} else {
subtype = 'CIDFontType0C';
}
} }
var data; var data;
@ -35132,6 +35139,11 @@ var Font = (function FontClosure() {
return readUint32(header, 0) === 0x00010000; return readUint32(header, 0) === 0x00010000;
} }
function isOpenTypeFile(file) {
var header = file.peekBytes(4);
return bytesToString(header) === 'OTTO';
}
function isType1File(file) { function isType1File(file) {
var header = file.peekBytes(2); var header = file.peekBytes(2);
// All Type1 font programs must begin with the comment '%!' (0x25 + 0x21). // All Type1 font programs must begin with the comment '%!' (0x25 + 0x21).

4
build/pdf.js

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.3.163'; var pdfjsVersion = '1.3.165';
var pdfjsBuild = '30b8f41'; var pdfjsBuild = '3057b69';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?

18
build/pdf.worker.js vendored

@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {}));
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
'use strict'; 'use strict';
var pdfjsVersion = '1.3.163'; var pdfjsVersion = '1.3.165';
var pdfjsBuild = '30b8f41'; var pdfjsBuild = '3057b69';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?
@ -27217,7 +27217,14 @@ var Font = (function FontClosure() {
} }
// Some CIDFontType0C fonts by mistake claim CIDFontType0. // Some CIDFontType0C fonts by mistake claim CIDFontType0.
if (type === 'CIDFontType0') { if (type === 'CIDFontType0') {
subtype = isType1File(file) ? 'CIDFontType0' : 'CIDFontType0C'; if (isType1File(file)) {
subtype = 'CIDFontType0';
} else if (isOpenTypeFile(file)) {
// Sometimes the type/subtype can be a complete lie (see issue6782.pdf).
type = subtype = 'OpenType';
} else {
subtype = 'CIDFontType0C';
}
} }
var data; var data;
@ -27301,6 +27308,11 @@ var Font = (function FontClosure() {
return readUint32(header, 0) === 0x00010000; return readUint32(header, 0) === 0x00010000;
} }
function isOpenTypeFile(file) {
var header = file.peekBytes(4);
return bytesToString(header) === 'OTTO';
}
function isType1File(file) { function isType1File(file) {
var header = file.peekBytes(2); var header = file.peekBytes(2);
// All Type1 font programs must begin with the comment '%!' (0x25 + 0x21). // All Type1 font programs must begin with the comment '%!' (0x25 + 0x21).

2
package.json

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

Loading…
Cancel
Save