|
|
@ -78,6 +78,8 @@ var DEFAULT_CACHE_SIZE = 10; |
|
|
|
* around the pages. The default is false. |
|
|
|
* around the pages. The default is false. |
|
|
|
* @property {boolean} enhanceTextSelection - (optional) Enables the improved |
|
|
|
* @property {boolean} enhanceTextSelection - (optional) Enables the improved |
|
|
|
* text selection behaviour. The default is `false`. |
|
|
|
* text selection behaviour. The default is `false`. |
|
|
|
|
|
|
|
* @property {boolean} renderInteractiveForms - (optional) Enables rendering of |
|
|
|
|
|
|
|
* interactive form elements. The default is `false`. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -130,6 +132,7 @@ var PDFViewer = (function pdfViewer() { |
|
|
|
this.downloadManager = options.downloadManager || null; |
|
|
|
this.downloadManager = options.downloadManager || null; |
|
|
|
this.removePageBorders = options.removePageBorders || false; |
|
|
|
this.removePageBorders = options.removePageBorders || false; |
|
|
|
this.enhanceTextSelection = options.enhanceTextSelection || false; |
|
|
|
this.enhanceTextSelection = options.enhanceTextSelection || false; |
|
|
|
|
|
|
|
this.renderInteractiveForms = options.renderInteractiveForms || false; |
|
|
|
|
|
|
|
|
|
|
|
this.defaultRenderingQueue = !options.renderingQueue; |
|
|
|
this.defaultRenderingQueue = !options.renderingQueue; |
|
|
|
if (this.defaultRenderingQueue) { |
|
|
|
if (this.defaultRenderingQueue) { |
|
|
@ -357,6 +360,7 @@ var PDFViewer = (function pdfViewer() { |
|
|
|
textLayerFactory: textLayerFactory, |
|
|
|
textLayerFactory: textLayerFactory, |
|
|
|
annotationLayerFactory: this, |
|
|
|
annotationLayerFactory: this, |
|
|
|
enhanceTextSelection: this.enhanceTextSelection, |
|
|
|
enhanceTextSelection: this.enhanceTextSelection, |
|
|
|
|
|
|
|
renderInteractiveForms: this.renderInteractiveForms, |
|
|
|
}); |
|
|
|
}); |
|
|
|
bindOnAfterAndBeforeDraw(pageView); |
|
|
|
bindOnAfterAndBeforeDraw(pageView); |
|
|
|
this._pages.push(pageView); |
|
|
|
this._pages.push(pageView); |
|
|
@ -856,12 +860,15 @@ var PDFViewer = (function pdfViewer() { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* @param {HTMLDivElement} pageDiv |
|
|
|
* @param {HTMLDivElement} pageDiv |
|
|
|
* @param {PDFPage} pdfPage |
|
|
|
* @param {PDFPage} pdfPage |
|
|
|
|
|
|
|
* @param {boolean} renderInteractiveForms |
|
|
|
* @returns {AnnotationLayerBuilder} |
|
|
|
* @returns {AnnotationLayerBuilder} |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
createAnnotationLayerBuilder: function (pageDiv, pdfPage) { |
|
|
|
createAnnotationLayerBuilder: function (pageDiv, pdfPage, |
|
|
|
|
|
|
|
renderInteractiveForms) { |
|
|
|
return new AnnotationLayerBuilder({ |
|
|
|
return new AnnotationLayerBuilder({ |
|
|
|
pageDiv: pageDiv, |
|
|
|
pageDiv: pageDiv, |
|
|
|
pdfPage: pdfPage, |
|
|
|
pdfPage: pdfPage, |
|
|
|
|
|
|
|
renderInteractiveForms: renderInteractiveForms, |
|
|
|
linkService: this.linkService, |
|
|
|
linkService: this.linkService, |
|
|
|
downloadManager: this.downloadManager |
|
|
|
downloadManager: this.downloadManager |
|
|
|
}); |
|
|
|
}); |
|
|
|