|
|
@ -348,9 +348,9 @@ PDFJS.getDocument = function getDocument(src, |
|
|
|
/** |
|
|
|
/** |
|
|
|
* PDF document loading operation. |
|
|
|
* PDF document loading operation. |
|
|
|
* @class |
|
|
|
* @class |
|
|
|
|
|
|
|
* @alias PDFDocumentLoadingTask |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
var PDFDocumentLoadingTask = (function PDFDocumentLoadingTaskClosure() { |
|
|
|
var PDFDocumentLoadingTask = (function PDFDocumentLoadingTaskClosure() { |
|
|
|
/** @constructs PDFDocumentLoadingTask */ |
|
|
|
|
|
|
|
function PDFDocumentLoadingTask() { |
|
|
|
function PDFDocumentLoadingTask() { |
|
|
|
this._capability = createPromiseCapability(); |
|
|
|
this._capability = createPromiseCapability(); |
|
|
|
this._transport = null; |
|
|
|
this._transport = null; |
|
|
@ -407,13 +407,11 @@ var PDFDocumentLoadingTask = (function PDFDocumentLoadingTaskClosure() { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Abstract class to support range requests file loading. |
|
|
|
* Abstract class to support range requests file loading. |
|
|
|
* @class |
|
|
|
* @class |
|
|
|
|
|
|
|
* @alias PDFJS.PDFDataRangeTransport |
|
|
|
|
|
|
|
* @param {number} length |
|
|
|
|
|
|
|
* @param {Uint8Array} initialData |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
var PDFDataRangeTransport = (function pdfDataRangeTransportClosure() { |
|
|
|
var PDFDataRangeTransport = (function pdfDataRangeTransportClosure() { |
|
|
|
/** |
|
|
|
|
|
|
|
* @constructs PDFDataRangeTransport |
|
|
|
|
|
|
|
* @param {number} length |
|
|
|
|
|
|
|
* @param {Uint8Array} initialData |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
function PDFDataRangeTransport(length, initialData) { |
|
|
|
function PDFDataRangeTransport(length, initialData) { |
|
|
|
this.length = length; |
|
|
|
this.length = length; |
|
|
|
this.initialData = initialData; |
|
|
|
this.initialData = initialData; |
|
|
@ -487,6 +485,7 @@ PDFJS.PDFDataRangeTransport = PDFDataRangeTransport; |
|
|
|
* Proxy to a PDFDocument in the worker thread. Also, contains commonly used |
|
|
|
* Proxy to a PDFDocument in the worker thread. Also, contains commonly used |
|
|
|
* properties that can be read synchronously. |
|
|
|
* properties that can be read synchronously. |
|
|
|
* @class |
|
|
|
* @class |
|
|
|
|
|
|
|
* @alias PDFDocumentProxy |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
var PDFDocumentProxy = (function PDFDocumentProxyClosure() { |
|
|
|
var PDFDocumentProxy = (function PDFDocumentProxyClosure() { |
|
|
|
function PDFDocumentProxy(pdfInfo, transport, loadingTask) { |
|
|
|
function PDFDocumentProxy(pdfInfo, transport, loadingTask) { |
|
|
@ -681,6 +680,7 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Proxy to a PDFPage in the worker thread. |
|
|
|
* Proxy to a PDFPage in the worker thread. |
|
|
|
* @class |
|
|
|
* @class |
|
|
|
|
|
|
|
* @alias PDFPageProxy |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
var PDFPageProxy = (function PDFPageProxyClosure() { |
|
|
|
var PDFPageProxy = (function PDFPageProxyClosure() { |
|
|
|
function PDFPageProxy(pageIndex, pageInfo, transport) { |
|
|
|
function PDFPageProxy(pageIndex, pageInfo, transport) { |
|
|
@ -1636,6 +1636,7 @@ var PDFObjects = (function PDFObjectsClosure() { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Allows controlling of the rendering tasks. |
|
|
|
* Allows controlling of the rendering tasks. |
|
|
|
* @class |
|
|
|
* @class |
|
|
|
|
|
|
|
* @alias RenderTask |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
var RenderTask = (function RenderTaskClosure() { |
|
|
|
var RenderTask = (function RenderTaskClosure() { |
|
|
|
function RenderTask(internalRenderTask) { |
|
|
|
function RenderTask(internalRenderTask) { |
|
|
|