Andres Javier Muñoyerro Pindado wrote:

Hello all !!!!
I use iText to create a PDF document. I open the documente in a new window a
function javascript:
* myWindow = window.open('path/servlet/ServletXXX','window_name','height=400,width=575,scrollbars=1,resizable=1');* I print it without the user interaction, but my problem is: How i can closed the new window whe the document finishes printing?? The code in javascript : *myWindow.close();* doesn`t work.

The browser can't know when your printer is done printing.
If you open a PDF in Adobe Reader (not embedded in a browser),
there's probably a way to close the document in an event 'after printing'
using JavaScript in the PDF, but I doubt if it's possible to close a
browser from the Adobe Reader plug-in.
br,
Bruno


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to