Method:setPage(page)

E.g. ViewONE.setPage(2);

Sets the current page number (an integer).

Method: getPage()

E.g. var page = ViewONE.getPage();

Returns the current page number as an integer.

Method: nextPage()

E.g. ViewONE.nextPage();

Convenience method to view the next page (current page + 1)

Method: previousPage()

E.g. ViewONE.previousPage();

Convenience method to view the previous page (current page - 1).

Method Group:

setDescription(description)

getDescription()

E.g.

var desc = ViewONE.getDescription();

ViewONE.setDescription(“myDoc”);

Gets or sets the description for the document. The description is used when opening the document in ViewONE, “Opening docXYZ…” or “Opening docXYZ, page 2….” will be

displayed in the status bar.

24

Page 24
Image 24
JAVA Tech VERSION 3.0 manual MethodsetPagepage, Method getPage, Method nextPage, Method previousPage