Gets the current page index.
ID of the instance
Whether or not the viewer instance has been bootstrapped
Populated with error when loadSuccessful is false. Otherwise, undefined.
Returns true, if document was loaded into view without error.
Name of the viewer instance
Gets the current number of loaded pages for the current document.
Returns true if thumbnails are visible
Viewer type
Activate lifecycle method that is invoked when the instance is becoming the IViewerCollection's active viewer
Promise that is resolved once activation is complete.
Bootstrap lifecycle method for one-time setup of the viewer instance.
This method is called after the instance's DOM element has been setup, but before any documents are loaded.
ID of the viewer instance's DOM element
The viewer collection the instance belongs to
Promise that is resolved once bootstrapping is complete.
CanDeactivate lifecycle method that is invoked when the IViewerCollection needs to determine if it is safe to unload a document
Whether or not it is safe to load a new item, deactivate the viewer, or teardown the viewer.
Deactivate lifecycle method that is invoked when the instance is no longer the IViewerCollection's active viewer
Promise that is resolved once deactivation is complete.
Gets the page rotations in degrees for a particular page
Page rotation value
Load lifecycle method that is invoked when the viewer instance should load a document from the queue
Item to be loaded and displayed to the user
Promise that is resolved once the item has been loaded.
Moves to the next page on the OI Doc
Moves to pageIndex if exists in the OI document.
Index of target page. This index is 0-based.
Moves to the previous page on the OI Doc
Opens the Save as PDF Modal
Reload lifecycle method that is invoked when the viewer instance should refresh all of it's data before reloading the current queue item
Promise that is resolved once the reload is complete.
Rotates the all pages clockwise 90 degrees based on the current page (The topmost image) orientation and updates the database
Promise that resolves to a boolean indicating whether it succeeded or not
Rotates the current page (The topmost image) clockwise 90 degrees and updates the database
Promise that resolves to a boolean indicating whether it succeeded or not
Sets the page layout mode for the current OI View using the passed in value
scroll mode setting
Sets the page rotation for a particular page and updates the database
Only accepts intervals of 90 degrees
Promise that resolves to a boolean indicating whether it succeeded or not
Sets all page rotations for a document and updates the database
Only accepts intervals of 90 degrees
Promise that resolves to a boolean indicating whether it succeeded or not
Teardown lifecycle method for one-time teardown of the viewer instance.
This method is called when the IViewerCollection is being torn down.
Promise that is resolved once teardown is complete.
Toggles Outside In Thumbnails functionality based on thumbnailsVisible property
returns the total number of pages on the current document
Production Viewer IViewerInstance