This method prints the document.
Defined in
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 copiesSpecifies the count of copies to print. The default value is 1.
String pagesSpecifies 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 collateSpecifies 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