Method:

(Pro-Only)

Method Group:

(Pro-Only)

setBackgroundImage(filename, pageNumber)

E.g. ViewONE.setBackgroundImage(“mybackimage.tif“, 1);

This method is used to set the COLD background template for all pages in a document.

The pageNumber paramater is used where the file used for the backround supports multiple pages, such as TIF and PDF files.

Note: this method must be called before opening a document.

initializeBackgroundImageArray(pages) setBackgroundImageArrayItem(filename, index) useBackgroundImageArray(page)

E.g.

ViewONE.initializeBackgroundImageArray(3);

ViewONE.setBackgroundImageArrayItem(“template1.tif”, 0);

ViewONE.setBackgroundImageArrayItem(“template2.tif”, 1);

ViewONE.setBackgroundImageArrayItem(“template3.tif”, 2);

ViewONE.useBackgroundImageArray(1);

This method group is used to specify a different COLD background template file for each page. If this technique is used then a template must be specified for all pages of your document.

The first methods specifies the number files (pages) in a list, followed by a series of methods that specify each template (each one representing a successive page of the document), the final method informs ViewONE that the templates are defined and ready to use.

Note: these methods must be called before opening a document.

34

Page 34
Image 34
JAVA Tech VERSION 3.0 manual SetBackgroundImagefilename, pageNumber