You should ask that in an Acrobat forum, iText just places whatever javascript you create, it doesn't process it. Paulo
________________________________ De: [EMAIL PROTECTED] em nome de Hilbert Rémy (GFDI) Enviada: sex 06-Abr-07 12:12 Para: itext-questions@lists.sourceforge.net Assunto: [iText-questions] Problem to Print a PDF Hi, I wrote a Servlet who have to print silently the pdf. I used the same code as in your example (see http://itextdocs.lowagie.com/tutorial/general/webapp/index.html#silentprint) It's working well but I have to set the name of the printer So i use this code : StringBuffer javascript = new StringBuffer(); javascript.append("var pp = this.getPrintParams();"); javascript.append("pp.interactive = pp.constants.interactionLevel.silent;"); javascript.append("pp.printerName = \"P999408A\";"); javascript.append("this.print(pp);"); writer.addJavaScript(javascript.toString(), false); And it does not print (no error, no exceptions, ...). The printer is online and is a network Printer. I tried with the name of the printer with and without the network path. Please help me do you have an idea to solve my problem ? Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message.
<<winmail.dat>>
------------------------------------------------------------------------- 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/