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

fileToPrintdocument to print

Throws

the DocumentException if an error occurs.

  • Last modified: 2023/05/09 01:26