Browse Source

PDF.js version 1.4.31 - See mozilla/pdf.js@825a2225ab8d2c205e0ad6ef844565b410c0a075

master v1.4.31
Pdf Bot 9 years ago
parent
commit
b4dc68a37b
  1. 2
      bower.json
  2. 19572
      build/pdf.combined.js
  3. 41
      build/pdf.js
  4. 19998
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

19572
build/pdf.combined.js

File diff suppressed because it is too large Load Diff

41
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.4.23'; var pdfjsVersion = '1.4.31';
var pdfjsBuild = '252b9d5'; var pdfjsBuild = '825a222';
var pdfjsFilePath = var pdfjsFilePath =
typeof document !== 'undefined' && document.currentScript ? typeof document !== 'undefined' && document.currentScript ?
@ -94,7 +94,7 @@ var CustomStyle = (function CustomStyleClosure() {
// in some versions of IE9 it is critical that ms appear in this list // in some versions of IE9 it is critical that ms appear in this list
// before Moz // before Moz
var prefixes = ['ms', 'Moz', 'Webkit', 'O']; var prefixes = ['ms', 'Moz', 'Webkit', 'O'];
var _cache = {}; var _cache = Object.create(null);
function CustomStyle() {} function CustomStyle() {}
@ -485,6 +485,18 @@ function shadow(obj, prop, value) {
} }
PDFJS.shadow = shadow; PDFJS.shadow = shadow;
function getLookupTableFactory(initializer) {
var lookup;
return function () {
if (initializer) {
lookup = Object.create(null);
initializer(lookup);
initializer = null;
}
return lookup;
};
}
var LinkTarget = PDFJS.LinkTarget = { var LinkTarget = PDFJS.LinkTarget = {
NONE: 0, // Default value. NONE: 0, // Default value.
SELF: 1, SELF: 1,
@ -1582,7 +1594,7 @@ var StatTimer = (function StatTimerClosure() {
return str; return str;
} }
function StatTimer() { function StatTimer() {
this.started = {}; this.started = Object.create(null);
this.times = []; this.times = [];
this.enabled = true; this.enabled = true;
} }
@ -1676,8 +1688,8 @@ function MessageHandler(sourceName, targetName, comObj) {
this.comObj = comObj; this.comObj = comObj;
this.callbackIndex = 1; this.callbackIndex = 1;
this.postMessageTransfers = true; this.postMessageTransfers = true;
var callbacksCapabilities = this.callbacksCapabilities = {}; var callbacksCapabilities = this.callbacksCapabilities = Object.create(null);
var ah = this.actionHandler = {}; var ah = this.actionHandler = Object.create(null);
this._onComObjOnMessage = function messageHandlerComObjOnMessage(event) { this._onComObjOnMessage = function messageHandlerComObjOnMessage(event) {
var data = event.data; var data = event.data;
@ -2466,6 +2478,7 @@ exports.combineUrl = combineUrl;
exports.createPromiseCapability = createPromiseCapability; exports.createPromiseCapability = createPromiseCapability;
exports.deprecated = deprecated; exports.deprecated = deprecated;
exports.error = error; exports.error = error;
exports.getLookupTableFactory = getLookupTableFactory;
exports.info = info; exports.info = info;
exports.isArray = isArray; exports.isArray = isArray;
exports.isArrayBuffer = isArrayBuffer; exports.isArrayBuffer = isArrayBuffer;
@ -3542,7 +3555,7 @@ Object.defineProperty(FontLoader, 'isSyncFontLoadingSupported', {
var FontFaceObject = (function FontFaceObjectClosure() { var FontFaceObject = (function FontFaceObjectClosure() {
function FontFaceObject(translatedData) { function FontFaceObject(translatedData) {
this.compiledGlyphs = {}; this.compiledGlyphs = Object.create(null);
// importing translated data // importing translated data
for (var i in translatedData) { for (var i in translatedData) {
this[i] = translatedData[i]; this[i] = translatedData[i];
@ -3696,7 +3709,7 @@ var Metadata = PDFJS.Metadata = (function MetadataClosure() {
} }
this.metaDocument = meta; this.metaDocument = meta;
this.metadata = {}; this.metadata = Object.create(null);
this.parse(); this.parse();
} }
@ -4114,7 +4127,7 @@ var SVGGraphics = (function SVGGraphicsClosure() {
this.pendingEOFill = false; this.pendingEOFill = false;
this.embedFonts = false; this.embedFonts = false;
this.embeddedFonts = {}; this.embeddedFonts = Object.create(null);
this.cssStyle = null; this.cssStyle = null;
} }
@ -9106,7 +9119,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
this.objs = new PDFObjects(); this.objs = new PDFObjects();
this.cleanupAfterRender = false; this.cleanupAfterRender = false;
this.pendingCleanup = false; this.pendingCleanup = false;
this.intentStates = {}; this.intentStates = Object.create(null);
this.destroyed = false; this.destroyed = false;
} }
PDFPageProxy.prototype = /** @lends PDFPageProxy.prototype */ { PDFPageProxy.prototype = /** @lends PDFPageProxy.prototype */ {
@ -9181,7 +9194,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
var renderingIntent = (params.intent === 'print' ? 'print' : 'display'); var renderingIntent = (params.intent === 'print' ? 'print' : 'display');
if (!this.intentStates[renderingIntent]) { if (!this.intentStates[renderingIntent]) {
this.intentStates[renderingIntent] = {}; this.intentStates[renderingIntent] = Object.create(null);
} }
var intentState = this.intentStates[renderingIntent]; var intentState = this.intentStates[renderingIntent];
@ -9273,7 +9286,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
var renderingIntent = 'oplist'; var renderingIntent = 'oplist';
if (!this.intentStates[renderingIntent]) { if (!this.intentStates[renderingIntent]) {
this.intentStates[renderingIntent] = {}; this.intentStates[renderingIntent] = Object.create(null);
} }
var intentState = this.intentStates[renderingIntent]; var intentState = this.intentStates[renderingIntent];
@ -10088,7 +10101,7 @@ var WorkerTransport = (function WorkerTransportClosure() {
*/ */
var PDFObjects = (function PDFObjectsClosure() { var PDFObjects = (function PDFObjectsClosure() {
function PDFObjects() { function PDFObjects() {
this.objs = {}; this.objs = Object.create(null);
} }
PDFObjects.prototype = { PDFObjects.prototype = {
@ -10179,7 +10192,7 @@ var PDFObjects = (function PDFObjectsClosure() {
}, },
clear: function PDFObjects_clear() { clear: function PDFObjects_clear() {
this.objs = {}; this.objs = Object.create(null);
} }
}; };
return PDFObjects; return PDFObjects;

19998
build/pdf.worker.js vendored

File diff suppressed because it is too large Load Diff

2
package.json

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