The open source packages usu. relies on log4j or Java Logger to print logs, by default the console handler is attached to the logger thus the logs will be printed to console. In certain cases we need to disable this behavior. Usu. it should be done v
打印对象 一份设置为A3纸张, 页面边距为(10, 10, 10, 10)mm的PDF文件. PageFormat 默认PDFPrintable无法设置页面大小. PDFPrintable printable = new PDFPrintable(document); PrinterJob job = PrinterJob.getPrinterJob(); job.setPrintable(printable); 需要把它放到一个Book中, 再设置即可 Book book = new Book