print method

This method prints the document.

Defined in

Document

Syntax

public void print()
public void print(int copies)
public void print(int copies,String pages)
public void print(int copies, String pages, boolean collate)

Parameters

int copies

Specifies the count of copies to print. The default value is 1.

String pages

Specifies the range of pages to print. For example, the range 1-5, 7 prints pages 1 to 5, and page 7. The default value is all pages.

boolean collate

Specifies true to print all the pages before printing another copy when more than one copy to print, or false to print each page copies together. The default value is true.

See examples

Example: print method