Hi,

What PDFBox version are you using, and on what operating system are you working?

Tilman

Am 08.07.2020 um 19:51 schrieb Subbiah, Murugan:
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.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to