Hey guys,
Last year I used iText (obviously) and some nice javascript to
implement Silent Print (On Click of a button, the document gets
printed, without the user having to view the document. The script
(described below) executes when the document is opened (The object tag
which displays the pdf has 0 height and 0 width and so the document is
invisible to the user)
It's a very simple piece of javascript and worked well with Adobe 7.x.
We tried it in version 8.x and it does not work. Here is the
javascript. Any ideas?
PdfStamper stamp = new PdfStamper(reader, bos);
stamp.addJavaScript( "this.print({bUI: true,bSilent:
false,bShrinkToFit: true});"
+ "\r\n"
+ "this.closeDoc();");
stamp.close();
thanks
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/