Print an Excel spreadsheet in Java using jOfficeConvert

jOfficeConvert allows to print an Excel spreadhsheet and send it either to the default printer or to a named printer. // Load the document ExcelDocument ed = new ExcelDocument("input.xlsx", new ExcelConvertOptions());   // Print to the default printer ed.printToDefaultPrinter(null);   // Print to a named printer ed.print("my printer", null);// Load the document ExcelDocument ed = […]

Read More

Very slow to print a PDF document with transparency in Java

Q:  We are experiencing some performance issue when printing a specific PDF with jPDFPrint. It takes a very long time to print, about 24 minutes on our Windows machine, when printing with Java 1.7. A: We looked at the document you sent. Your document was created with GPL Ghostscript and contains hundreds (if not thousands) […]

Read More

Selecting both tray and paper size when printing in Java

When printing in Java, it is only possible to specify one media attribute: either paper or tray. In theory, if you choose the tray then Java knows what paper size to use and the other way around. But in practice, this does not always work and there may be situations where you need to specify […]

Read More