The TXDocumentViewer JavaScript object provides a public API to manipulate the document viewer via JavaScript functions in the browser.

Syntax

TXDocumentViewer

Methods

Method Description
addEventListener The addEventListener function registers event listener functions on the TXDocumentViewer object.
cancelSearch Cancels a currently active search process.
downloadDocument Downloads the current document as an Adobe PDF document.
find Finds a string in the currently loaded document.
loadDocument Loads a document from memory into the DocumentViewer.
lockZoom Locks the zoom to 100%.
nextSearchResult Moves to the next found search result and scrolls the DocumentViewer to that location.
printDocument Prints the content of the document using browser printing functionality.
scrollToPage Scrolls to the specific page in the currently loaded document.
toggleFullScreen Toggles between the browser full screen mode and the normal docked mode of the DocumentViewer.
toggleSelection Toggles the line text selection functionality of the DocumentViewer.
toggleSidebar Toggles the display of the document thumbnail sidebar of the DocumentViewer.
toggleToolbar Toggles the visibility of the undocked toolbar.

Properties

Property Description
annotations Provides functionalities for working with Annotations.
forms Provides functionalities for working with forms.