NONCONFIDENTIAL // EXTERNAL Hi PDFBox users, I'm trying to evaluate PDFBox for silent printing, everything works fine except it leaves an empty window open. Could anyone help me fix this issue?
Below is my code try (PDDocument doc = PDDocument.load(bais);) { PrinterJob job = PrinterJob.getPrinterJob(); job.setPageable(new PDFPageable(doc)); job.print(); } catch (IOException | PrinterException ioe) { ioe.printStackTrace(); } Best Regards, Murugan.