Frank Griffith wrote: > I fixed the problem with this: > > > // adobe javascript code for the silent print > StringBuffer javascript = new StringBuffer(); > javascript.append("var params = this.getPrintParams();"); > javascript.append("params.interactive = > params.constants.interactionLevel.silent;"); > javascript.append("params.pageHandling = > params.constants.handling.shrink;"); > javascript.append("this.print(params);"); > > > PdfAction pdfAction= PdfAction.javaScript(javascript.toString(), writer); > writer.addJavaScript(pdfAction);
Thanks for the feedback! This is an interesting code snippet! best regards, Bruno ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/