{{tag>Index Programmers_Reference Methods IDocumentEngine_Interface printfile}} ====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 ''[[pr_methods:fillwithdata|fillWithData]]'' method). ===Parameters=== |''fileToPrint''|document to print| ===Throws=== the ''DocumentException'' if an error occurs.