|
@@ -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.5.226';
|
|
|
|
-var pdfjsBuild = 'd179992';
|
|
|
|
|
|
+var pdfjsVersion = '1.5.228';
|
|
|
|
+var pdfjsBuild = '9c95d08';
|
|
|
|
|
|
var pdfjsFilePath =
|
|
var pdfjsFilePath =
|
|
typeof document !== 'undefined' && document.currentScript ?
|
|
typeof document !== 'undefined' && document.currentScript ?
|
|
@@ -3341,7 +3341,7 @@ function createPromiseCapability() {
|
|
/**
|
|
/**
|
|
* Builds a promise that is resolved when all the passed in promises are
|
|
* Builds a promise that is resolved when all the passed in promises are
|
|
* resolved.
|
|
* resolved.
|
|
- * @param {array} array of data and/or promises to wait for.
|
|
|
|
|
|
+ * @param {array} promises array of data and/or promises to wait for.
|
|
* @return {Promise} New dependant promise.
|
|
* @return {Promise} New dependant promise.
|
|
*/
|
|
*/
|
|
Promise.all = function Promise_all(promises) {
|
|
Promise.all = function Promise_all(promises) {
|
|
@@ -4710,7 +4710,7 @@ var CFFParser = (function CFFParserClosure() {
|
|
function parseOperand() {
|
|
function parseOperand() {
|
|
var value = dict[pos++];
|
|
var value = dict[pos++];
|
|
if (value === 30) {
|
|
if (value === 30) {
|
|
- return parseFloatOperand(pos);
|
|
|
|
|
|
+ return parseFloatOperand();
|
|
} else if (value === 28) {
|
|
} else if (value === 28) {
|
|
value = dict[pos++];
|
|
value = dict[pos++];
|
|
value = ((value << 24) | (dict[pos++] << 16)) >> 16;
|
|
value = ((value << 24) | (dict[pos++] << 16)) >> 16;
|
|
@@ -13338,7 +13338,7 @@ var JpxImage = (function JpxImageClosure() {
|
|
for (j = 0; j < codingpasses; j++) {
|
|
for (j = 0; j < codingpasses; j++) {
|
|
switch (currentCodingpassType) {
|
|
switch (currentCodingpassType) {
|
|
case 0:
|
|
case 0:
|
|
- bitModel.runSignificancePropogationPass();
|
|
|
|
|
|
+ bitModel.runSignificancePropagationPass();
|
|
break;
|
|
break;
|
|
case 1:
|
|
case 1:
|
|
bitModel.runMagnitudeRefinementPass();
|
|
bitModel.runMagnitudeRefinementPass();
|
|
@@ -13817,8 +13817,8 @@ var JpxImage = (function JpxImageClosure() {
|
|
}
|
|
}
|
|
neighborsSignificance[index] |= 0x80;
|
|
neighborsSignificance[index] |= 0x80;
|
|
},
|
|
},
|
|
- runSignificancePropogationPass:
|
|
|
|
- function BitModel_runSignificancePropogationPass() {
|
|
|
|
|
|
+ runSignificancePropagationPass:
|
|
|
|
+ function BitModel_runSignificancePropagationPass() {
|
|
var decoder = this.decoder;
|
|
var decoder = this.decoder;
|
|
var width = this.width, height = this.height;
|
|
var width = this.width, height = this.height;
|
|
var coefficentsMagnitude = this.coefficentsMagnitude;
|
|
var coefficentsMagnitude = this.coefficentsMagnitude;
|
|
@@ -27351,17 +27351,15 @@ var CipherTransformFactory = (function CipherTransformFactoryClosure() {
|
|
pdfAlgorithm = new PDF17();
|
|
pdfAlgorithm = new PDF17();
|
|
}
|
|
}
|
|
|
|
|
|
- if (pdfAlgorithm) {
|
|
|
|
- if (pdfAlgorithm.checkUserPassword(password, userValidationSalt,
|
|
|
|
- userPassword)) {
|
|
|
|
- return pdfAlgorithm.getUserKey(password, userKeySalt, userEncryption);
|
|
|
|
- } else if (password.length && pdfAlgorithm.checkOwnerPassword(password,
|
|
|
|
- ownerValidationSalt,
|
|
|
|
- uBytes,
|
|
|
|
- ownerPassword)) {
|
|
|
|
- return pdfAlgorithm.getOwnerKey(password, ownerKeySalt, uBytes,
|
|
|
|
- ownerEncryption);
|
|
|
|
- }
|
|
|
|
|
|
+ if (pdfAlgorithm.checkUserPassword(password, userValidationSalt,
|
|
|
|
+ userPassword)) {
|
|
|
|
+ return pdfAlgorithm.getUserKey(password, userKeySalt, userEncryption);
|
|
|
|
+ } else if (password.length && pdfAlgorithm.checkOwnerPassword(password,
|
|
|
|
+ ownerValidationSalt,
|
|
|
|
+ uBytes,
|
|
|
|
+ ownerPassword)) {
|
|
|
|
+ return pdfAlgorithm.getOwnerKey(password, ownerKeySalt, uBytes,
|
|
|
|
+ ownerEncryption);
|
|
}
|
|
}
|
|
|
|
|
|
return null;
|
|
return null;
|
|
@@ -34160,19 +34158,18 @@ exports.createScratchCanvas = createScratchCanvas;
|
|
{
|
|
{
|
|
factory((root.pdfjsCoreFonts = {}), root.pdfjsSharedUtil,
|
|
factory((root.pdfjsCoreFonts = {}), root.pdfjsSharedUtil,
|
|
root.pdfjsCorePrimitives, root.pdfjsCoreStream, root.pdfjsCoreParser,
|
|
root.pdfjsCorePrimitives, root.pdfjsCoreStream, root.pdfjsCoreParser,
|
|
- root.pdfjsCoreGlyphList, root.pdfjsCoreCharsets,
|
|
|
|
- root.pdfjsCoreFontRenderer, root.pdfjsCoreEncodings,
|
|
|
|
- root.pdfjsCoreStandardFonts, root.pdfjsCoreUnicode,
|
|
|
|
- root.pdfjsCoreType1Parser, root.pdfjsCoreCFFParser);
|
|
|
|
|
|
+ root.pdfjsCoreGlyphList, root.pdfjsCoreFontRenderer,
|
|
|
|
+ root.pdfjsCoreEncodings, root.pdfjsCoreStandardFonts,
|
|
|
|
+ root.pdfjsCoreUnicode, root.pdfjsCoreType1Parser,
|
|
|
|
+ root.pdfjsCoreCFFParser);
|
|
}
|
|
}
|
|
}(this, function (exports, sharedUtil, corePrimitives, coreStream, coreParser,
|
|
}(this, function (exports, sharedUtil, corePrimitives, coreStream, coreParser,
|
|
- coreGlyphList, coreCharsets, coreFontRenderer,
|
|
|
|
- coreEncodings, coreStandardFonts, coreUnicode,
|
|
|
|
- coreType1Parser, coreCFFParser) {
|
|
|
|
|
|
+ coreGlyphList, coreFontRenderer, coreEncodings,
|
|
|
|
+ coreStandardFonts, coreUnicode, coreType1Parser,
|
|
|
|
+ coreCFFParser) {
|
|
|
|
|
|
var FONT_IDENTITY_MATRIX = sharedUtil.FONT_IDENTITY_MATRIX;
|
|
var FONT_IDENTITY_MATRIX = sharedUtil.FONT_IDENTITY_MATRIX;
|
|
var FontType = sharedUtil.FontType;
|
|
var FontType = sharedUtil.FontType;
|
|
-var Util = sharedUtil.Util;
|
|
|
|
var assert = sharedUtil.assert;
|
|
var assert = sharedUtil.assert;
|
|
var bytesToString = sharedUtil.bytesToString;
|
|
var bytesToString = sharedUtil.bytesToString;
|
|
var error = sharedUtil.error;
|
|
var error = sharedUtil.error;
|
|
@@ -34182,7 +34179,6 @@ var isInt = sharedUtil.isInt;
|
|
var isNum = sharedUtil.isNum;
|
|
var isNum = sharedUtil.isNum;
|
|
var readUint32 = sharedUtil.readUint32;
|
|
var readUint32 = sharedUtil.readUint32;
|
|
var shadow = sharedUtil.shadow;
|
|
var shadow = sharedUtil.shadow;
|
|
-var stringToBytes = sharedUtil.stringToBytes;
|
|
|
|
var string32 = sharedUtil.string32;
|
|
var string32 = sharedUtil.string32;
|
|
var warn = sharedUtil.warn;
|
|
var warn = sharedUtil.warn;
|
|
var MissingDataException = sharedUtil.MissingDataException;
|
|
var MissingDataException = sharedUtil.MissingDataException;
|
|
@@ -34190,16 +34186,11 @@ var Stream = coreStream.Stream;
|
|
var Lexer = coreParser.Lexer;
|
|
var Lexer = coreParser.Lexer;
|
|
var getGlyphsUnicode = coreGlyphList.getGlyphsUnicode;
|
|
var getGlyphsUnicode = coreGlyphList.getGlyphsUnicode;
|
|
var getDingbatsGlyphsUnicode = coreGlyphList.getDingbatsGlyphsUnicode;
|
|
var getDingbatsGlyphsUnicode = coreGlyphList.getDingbatsGlyphsUnicode;
|
|
-var ISOAdobeCharset = coreCharsets.ISOAdobeCharset;
|
|
|
|
-var ExpertCharset = coreCharsets.ExpertCharset;
|
|
|
|
-var ExpertSubsetCharset = coreCharsets.ExpertSubsetCharset;
|
|
|
|
var FontRendererFactory = coreFontRenderer.FontRendererFactory;
|
|
var FontRendererFactory = coreFontRenderer.FontRendererFactory;
|
|
-var WinAnsiEncoding = coreEncodings.WinAnsiEncoding;
|
|
|
|
var StandardEncoding = coreEncodings.StandardEncoding;
|
|
var StandardEncoding = coreEncodings.StandardEncoding;
|
|
var MacRomanEncoding = coreEncodings.MacRomanEncoding;
|
|
var MacRomanEncoding = coreEncodings.MacRomanEncoding;
|
|
var SymbolSetEncoding = coreEncodings.SymbolSetEncoding;
|
|
var SymbolSetEncoding = coreEncodings.SymbolSetEncoding;
|
|
var ZapfDingbatsEncoding = coreEncodings.ZapfDingbatsEncoding;
|
|
var ZapfDingbatsEncoding = coreEncodings.ZapfDingbatsEncoding;
|
|
-var ExpertEncoding = coreEncodings.ExpertEncoding;
|
|
|
|
var getEncoding = coreEncodings.getEncoding;
|
|
var getEncoding = coreEncodings.getEncoding;
|
|
var getStdFontMap = coreStandardFonts.getStdFontMap;
|
|
var getStdFontMap = coreStandardFonts.getStdFontMap;
|
|
var getNonStdFontMap = coreStandardFonts.getNonStdFontMap;
|
|
var getNonStdFontMap = coreStandardFonts.getNonStdFontMap;
|
|
@@ -36197,7 +36188,7 @@ var Font = (function FontClosure() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- function sanitizeTTPrograms(fpgm, prep, cvt) {
|
|
|
|
|
|
+ function sanitizeTTPrograms(fpgm, prep, cvt, maxFunctionDefs) {
|
|
var ttContext = {
|
|
var ttContext = {
|
|
functionsDefined: [],
|
|
functionsDefined: [],
|
|
functionsUsed: [],
|
|
functionsUsed: [],
|
|
@@ -36954,7 +36945,8 @@ var ErrorFont = (function ErrorFontClosure() {
|
|
* @param {Object} properties Font properties object.
|
|
* @param {Object} properties Font properties object.
|
|
* @param {Object} builtInEncoding The encoding contained within the actual font
|
|
* @param {Object} builtInEncoding The encoding contained within the actual font
|
|
* data.
|
|
* data.
|
|
- * @param {Array} Array of glyph names where the index is the glyph ID.
|
|
|
|
|
|
+ * @param {Array} glyphNames Array of glyph names where the index is the
|
|
|
|
+ * glyph ID.
|
|
* @returns {Object} A char code to glyph ID map.
|
|
* @returns {Object} A char code to glyph ID map.
|
|
*/
|
|
*/
|
|
function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) {
|
|
function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) {
|
|
@@ -39363,7 +39355,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
stats.time('Rendering');
|
|
stats.time('Rendering');
|
|
- internalRenderTask.initalizeGraphics(transparency);
|
|
|
|
|
|
+ internalRenderTask.initializeGraphics(transparency);
|
|
internalRenderTask.operatorListChanged();
|
|
internalRenderTask.operatorListChanged();
|
|
},
|
|
},
|
|
function pageDisplayReadPromiseError(reason) {
|
|
function pageDisplayReadPromiseError(reason) {
|
|
@@ -40349,8 +40341,8 @@ var InternalRenderTask = (function InternalRenderTaskClosure() {
|
|
|
|
|
|
InternalRenderTask.prototype = {
|
|
InternalRenderTask.prototype = {
|
|
|
|
|
|
- initalizeGraphics:
|
|
|
|
- function InternalRenderTask_initalizeGraphics(transparency) {
|
|
|
|
|
|
+ initializeGraphics:
|
|
|
|
+ function InternalRenderTask_initializeGraphics(transparency) {
|
|
|
|
|
|
if (this.cancelled) {
|
|
if (this.cancelled) {
|
|
return;
|
|
return;
|