A Java program that prints silently a PDF document to a named printer using jPDFPrint.
package jPDFPrintSamples; import com.qoppa.pdfPrint.PDFPrint; public class SimplePrintDefault { public static void main (String [] args) { try { PDFPrint pdfPrint = new PDFPrint("input.pdf", null); pdfPrint.print ("my printer", null); } catch (Throwable t) { t.printStackTrace(); } } } |