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 ?

 

-------------------------------------------------------------------------
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/

Reply via email to