When you click on the button with Adobe 7.x, the print dialog box
(which enables you to pick Print Preferences) shows up. With 8.x, the
print dialog box just does not show up.
BTW, I am using iText itext-1.3.6
thanks
On 6/18/07, Leonard Rosenthol <[EMAIL PROTECTED]> wrote:
> What do you mean "doesn't work"?
>
> What happens when such a PDF is open in Reader 8.x?
>
> Leonard
>
> On Jun 18, 2007, at 10:44 AM, Dilip Ladhani wrote:
>
> > 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();
> >
>
>
> -------------------------------------------------------------------------
> 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/
>
-------------------------------------------------------------------------
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/