Selection and clipboard
Method: selectPage(int pageNumber)
E.g. ViewONE.selectPage(4);
Toggles the select property on the page in a document indicated by the “pageNumber” parameter (available for
Method: clearSelections()
E.g. ViewONE.clearSelections();
Clears all page selections in the document (available for
Method: copyPageToClipboard()
E.g. ViewONE.copyPageToClipboard();
Produces a print dialog to allow the user to print the current page.
Security note: This method is disabled by default unless the “JavascriptExtensions” parameter is set to “true”.
Method: getSelection()
E.g. selection = ViewONE.getSelection();
This method returns a
55