Page Array methods

Specifies the number of files (pages) in a list, then specifies each file where each file represents a successive page of the document, and then opens the assembled document at the provided page.

The page array methods are:
  • initializePageArray(int numPages)
  • openPageArray(int page)
  • setPageArray(String filename, int page)

For setPageArray, the page array begins at array element zero. setPageArray takes the index of the page that you add (from 0). openPageArray takes the page number of the page that you add (from 1).

If you initialize the page array, it results in a soft close, which means that the current document is closed and the annotation source, templates, and background images are reset if a document is open. If no document is open, then the close and reset is not performed.

Sample syntax


ViewONE.initializePageArray(3);
ViewONE.setPageArray("page1.tif", 0);
ViewONE.setPageArray("page2.tif", 1);
ViewONE.setPageArray("page3.tif", 2);
ViewONE.openPageArray(1);