|
|
@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PDFJS.version = '1.0.1167'; |
|
|
|
PDFJS.version = '1.0.1169'; |
|
|
|
PDFJS.build = '4c2640d'; |
|
|
|
PDFJS.build = '00ee6bd'; |
|
|
|
|
|
|
|
|
|
|
|
(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
|
|
|
@ -1745,7 +1745,7 @@ PDFJS.verbosity = (PDFJS.verbosity === undefined ? |
|
|
|
PDFJS.VERBOSITY_LEVELS.warnings : PDFJS.verbosity); |
|
|
|
PDFJS.VERBOSITY_LEVELS.warnings : PDFJS.verbosity); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* The maximum supported canvas size in total pixels e.g. width * height. |
|
|
|
* The maximum supported canvas size in total pixels e.g. width * height. |
|
|
|
* The default value is 4096 * 4096. Use -1 for no limit. |
|
|
|
* The default value is 4096 * 4096. Use -1 for no limit. |
|
|
|
* @var {number} |
|
|
|
* @var {number} |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -2200,7 +2200,7 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() { |
|
|
|
* rendering call the function that is the first argument |
|
|
|
* rendering call the function that is the first argument |
|
|
|
* to the callback. |
|
|
|
* to the callback. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* PDF page operator list. |
|
|
|
* PDF page operator list. |
|
|
|
* |
|
|
|
* |
|
|
@ -5395,7 +5395,6 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var WebGLUtils = (function WebGLUtilsClosure() { |
|
|
|
var WebGLUtils = (function WebGLUtilsClosure() { |
|
|
|
function loadShader(gl, code, shaderType) { |
|
|
|
function loadShader(gl, code, shaderType) { |
|
|
|
var shader = gl.createShader(shaderType); |
|
|
|
var shader = gl.createShader(shaderType); |
|
|
@ -7014,7 +7013,7 @@ var SVGExtraState = (function SVGExtraStateClosure() { |
|
|
|
this.lineJoin = ''; |
|
|
|
this.lineJoin = ''; |
|
|
|
this.lineCap = ''; |
|
|
|
this.lineCap = ''; |
|
|
|
this.miterLimit = 0; |
|
|
|
this.miterLimit = 0; |
|
|
|
|
|
|
|
|
|
|
|
this.dashArray = []; |
|
|
|
this.dashArray = []; |
|
|
|
this.dashPhase = 0; |
|
|
|
this.dashPhase = 0; |
|
|
|
|
|
|
|
|
|
|
@ -7241,7 +7240,7 @@ var SVGGraphics = (function SVGGraphicsClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
return opListToTree(opList); |
|
|
|
return opListToTree(opList); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
executeOpTree: function SVGGraphics_executeOpTree(opTree) { |
|
|
|
executeOpTree: function SVGGraphics_executeOpTree(opTree) { |
|
|
|
var opTreeLen = opTree.length; |
|
|
|
var opTreeLen = opTree.length; |
|
|
|
for(var x = 0; x < opTreeLen; x++) { |
|
|
|
for(var x = 0; x < opTreeLen; x++) { |
|
|
@ -8189,7 +8188,6 @@ var NetworkManager = (function NetworkManagerClosure() { |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var ChunkedStream = (function ChunkedStreamClosure() { |
|
|
|
var ChunkedStream = (function ChunkedStreamClosure() { |
|
|
|
function ChunkedStream(length, chunkSize, manager) { |
|
|
|
function ChunkedStream(length, chunkSize, manager) { |
|
|
|
this.bytes = new Uint8Array(length); |
|
|
|
this.bytes = new Uint8Array(length); |
|
|
@ -8729,7 +8727,6 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() { |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// The maximum number of bytes fetched per range request
|
|
|
|
// The maximum number of bytes fetched per range request
|
|
|
|
var RANGE_CHUNK_SIZE = 65536; |
|
|
|
var RANGE_CHUNK_SIZE = 65536; |
|
|
|
|
|
|
|
|
|
|
@ -8935,7 +8932,6 @@ var NetworkPdfManager = (function NetworkPdfManagerClosure() { |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Page = (function PageClosure() { |
|
|
|
var Page = (function PageClosure() { |
|
|
|
|
|
|
|
|
|
|
|
var LETTER_SIZE_MEDIABOX = [0, 0, 612, 792]; |
|
|
|
var LETTER_SIZE_MEDIABOX = [0, 0, 612, 792]; |
|
|
@ -9445,7 +9441,6 @@ var PDFDocument = (function PDFDocumentClosure() { |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Name = (function NameClosure() { |
|
|
|
var Name = (function NameClosure() { |
|
|
|
function Name(name) { |
|
|
|
function Name(name) { |
|
|
|
this.name = name; |
|
|
|
this.name = name; |
|
|
@ -9978,7 +9973,7 @@ var Catalog = (function CatalogClosure() { |
|
|
|
var isPrintAction = (isName(objType) && objType.name === 'Action' && |
|
|
|
var isPrintAction = (isName(objType) && objType.name === 'Action' && |
|
|
|
isName(actionType) && actionType.name === 'Named' && |
|
|
|
isName(actionType) && actionType.name === 'Named' && |
|
|
|
isName(action) && action.name === 'Print'); |
|
|
|
isName(action) && action.name === 'Print'); |
|
|
|
|
|
|
|
|
|
|
|
if (isPrintAction) { |
|
|
|
if (isPrintAction) { |
|
|
|
javaScript.push('print(true);'); |
|
|
|
javaScript.push('print(true);'); |
|
|
|
} |
|
|
|
} |
|
|
@ -10834,7 +10829,7 @@ var NameTree = (function NameTreeClosure() { |
|
|
|
warn('Search depth limit for named destionations has been reached.'); |
|
|
|
warn('Search depth limit for named destionations has been reached.'); |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var kids = kidsOrNames.get('Kids'); |
|
|
|
var kids = kidsOrNames.get('Kids'); |
|
|
|
if (!isArray(kids)) { |
|
|
|
if (!isArray(kids)) { |
|
|
|
return null; |
|
|
|
return null; |
|
|
@ -10889,10 +10884,10 @@ var NameTree = (function NameTreeClosure() { |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* "A PDF file can refer to the contents of another file by using a File |
|
|
|
* "A PDF file can refer to the contents of another file by using a File |
|
|
|
* Specification (PDF 1.1)", see the spec (7.11) for more details. |
|
|
|
* Specification (PDF 1.1)", see the spec (7.11) for more details. |
|
|
|
* NOTE: Only embedded files are supported (as part of the attachments support) |
|
|
|
* NOTE: Only embedded files are supported (as part of the attachments support) |
|
|
|
* TODO: support the 'URL' file system (with caching if !/V), portable |
|
|
|
* TODO: support the 'URL' file system (with caching if !/V), portable |
|
|
|
* collections attributes and related files (/RF) |
|
|
|
* collections attributes and related files (/RF) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
var FileSpec = (function FileSpecClosure() { |
|
|
|
var FileSpec = (function FileSpecClosure() { |
|
|
@ -11222,7 +11217,6 @@ var ExpertSubsetCharset = [ |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var DEFAULT_ICON_SIZE = 22; // px
|
|
|
|
var DEFAULT_ICON_SIZE = 22; // px
|
|
|
|
var SUPPORTED_TYPES = ['Link', 'Text', 'Widget']; |
|
|
|
var SUPPORTED_TYPES = ['Link', 'Text', 'Widget']; |
|
|
|
|
|
|
|
|
|
|
@ -28377,7 +28371,6 @@ var FontRendererFactory = (function FontRendererFactoryClosure() { |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var GlyphsUnicode = { |
|
|
|
var GlyphsUnicode = { |
|
|
|
A: 0x0041, |
|
|
|
A: 0x0041, |
|
|
|
AE: 0x00C6, |
|
|
|
AE: 0x00C6, |
|
|
@ -36384,7 +36377,6 @@ var Metrics = { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var EOF = {}; |
|
|
|
var EOF = {}; |
|
|
|
|
|
|
|
|
|
|
|
function isEOF(v) { |
|
|
|
function isEOF(v) { |
|
|
@ -40542,9 +40534,9 @@ if (typeof window === 'undefined') { |
|
|
|
|
|
|
|
|
|
|
|
/* This class implements the QM Coder decoding as defined in |
|
|
|
/* This class implements the QM Coder decoding as defined in |
|
|
|
* JPEG 2000 Part I Final Committee Draft Version 1.0 |
|
|
|
* JPEG 2000 Part I Final Committee Draft Version 1.0 |
|
|
|
* Annex C.3 Arithmetic decoding procedure |
|
|
|
* Annex C.3 Arithmetic decoding procedure |
|
|
|
* available at http://www.jpeg.org/public/fcd15444-1.pdf
|
|
|
|
* available at http://www.jpeg.org/public/fcd15444-1.pdf
|
|
|
|
* |
|
|
|
* |
|
|
|
* The arithmetic decoder is used in conjunction with context models to decode |
|
|
|
* The arithmetic decoder is used in conjunction with context models to decode |
|
|
|
* JPEG2000 and JBIG2 streams. |
|
|
|
* JPEG2000 and JBIG2 streams. |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -43910,7 +43902,6 @@ var JpxImage = (function JpxImageClosure() { |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Jbig2Image = (function Jbig2ImageClosure() { |
|
|
|
var Jbig2Image = (function Jbig2ImageClosure() { |
|
|
|
// Utility data structures
|
|
|
|
// Utility data structures
|
|
|
|
function ContextCache() {} |
|
|
|
function ContextCache() {} |
|
|
@ -45387,7 +45378,6 @@ var bidi = PDFJS.bidi = (function bidiClosure() { |
|
|
|
return bidi; |
|
|
|
return bidi; |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
|
|
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
|
|
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ |
|
|
|
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ |
|
|
|
|
|
|
|
|
|
|
|