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).
fileToPrint | document to print |
the DocumentException
if an error occurs.