I need to print a file that is stored on a local disk, but with such parameters: the number of pages, the choice of color / black and white print. Here is what I have:
Desktop.getDesktop().print(new File(file_path)); The problem is that this way the entire file is printed on the default printer (black and white printing).
I found something related to printing in the java.awt.print , but how to create a file object that I need to print can not understand.