Hi, Am 29.01.13 00:59, schrieb John Cashion:
Here was my solution for those that need it in the future. Since i couldn't find something directly in pdfbox, I used the Desktop to call the reader file and then print that natively from the desktop. example code is herepublic void printOrder(){ try { File myFile = new File(finished); //Desktop.getDesktop().open(myFile); Desktop.getDesktop().print(myFile); doc.close(); } catch (IOException ex) { // no application registered for PDFs } }
Thanks for coming back and sharing your solution with us. It emphasizes my guess that the feature you are looking for isn't (yet) supported by PDFBox but by the application (Adobe reader?) which is registered on your desktop to handle PDFs. BR Andreas Lehmkühler

