On 9/13/2013 11:26 PM, Fred Duarte wrote: > Dear Everybody: > > I have done some research about How to print a PDF document using some > of java libraries but currently I do not have the best way to print > this PDF
If you want to print a PDF from a browser without a dialog box (in general, not limited to iText), please forget about your requirement, because what you want is considered a vulnerability, an undesired security hazard. If you want to select a printer, please take a look at the JavaScript for Acrobat reference. You can list printers like this: var l = app.printerNames.length; for ( var i = 0; i < l; i++) console.println("(" + (i+1) + ") " + app.printerNames[i]); Once you know what printer you want to print to, you can change the print parameters like this: var pp = this.getPrintParams(); pp.interactive = pp.constants.interactionLevel.automatic; pp.printerName = "hp officejet d series"; this.print(pp); I assume you have sufficient information on how to introduce JavaScript into a PDF using iText. There are different examples on how to do that on the iText site. ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php