printFile ()
public void printFile (File fileToPrint) throws DocumentException
This method is supposed to print the specified file. It is assumed that the provided file is of the format supported by the document type (presumably obtained by calling the fillWithData method).
Parameters
fileToPrint | document to print |
Throws
the DocumentException if an error occurs.