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 multi-page documents only).

Method: clearSelections()

E.g. ViewONE.clearSelections();

Clears all page selections in the document (available for multi-page documents only).

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 comma-delimited string containing any pages selected by the user.

55

Page 55
Image 55
JAVA Tech VERSION 3.0 manual Selection and clipboard, Method selectPageint pageNumber, Method clearSelections