Close the open document.
An API to get coordinate information for the PDF coordinate system from device coordinates.
the X-axis offset in the upper-left corner of the browser view.
default value is 0. The maximum value is device X-axis size.
the Y-axis offset in the upper-left corner of the browser view.
default value is 0. The maximum value is device Y-axis size.
Promise
Exit current search object.
null
Get current active PageView in this DocView.
Get the PDF document object of this DocView.
Gets the current view mode instance object.
view mode instance object
Get PageView by index in this DocView.
page view index, the value must be >= 0
Get the count of PageView in this DocView.
Obtains the rotation degree of curremt document
is one of these values: 0, 90, 180, 270
Get visible PageView by index in this DocView.
Get the count of visible PageView in this DocView.
Get zoom ratio of this DocView.
Prints the current document with specified options
the print options
Promise
Rotate the current document to specified degree. This method only changes the rendering effect of the view and does not change the PDF document data.
number - Rotation degree value, It should be 0,90,180, 270 or any angle value in multiples of 90 degrees.
Promise
Get text search object.
options.keywords {string} - Specifies text to search.
DocTextSearch
Switch to view mode by name.
void
Zoom to the given scale.
Greater than zero If it's a string, only 'fitWidth' and 'fitHeight' are valid.
Represents the view of PDF document in the app. To get a DocView, please use:
Doc