Yes it works. Go to Acrobat, list all javascript and see it there. I've no
idea if your javascript makes any sense in this context, though.

----- Original Message ----- 
From: "Annu Ittyachen Mathew" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, February 08, 2005 10:17 AM
Subject: [iText-questions] Additional Actions not working


> Hi,
>
> I want to set a JS action when the document is about to print. I used the
> code below
>
>     PdfAction oAction =
> PdfAction.javaScript("this.print(false);\r",oPdfWriter);
>     oPdfWriter.setAdditionalAction(PdfName.WP,oAction);
>
> However no such action is created. Am I doing anything wrong. I would
> appreciate it if anyone can throw some light on this
>
> Thank you,
>
> Regards,
> Annu
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to