It didn't work for me Is there any way in which I can
retrieve the JAVA Script associated with the close button In Acrobat,
Please let  me know if there is a way to do that and add using
PdfWriter.add(PdfAction)


Thanks
Amit


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Bruno Lowagie
Sent: Wednesday, January 31, 2007 3:12 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Issue with PdfReader-->getJavaScript

Amit Sharma wrote:
> I am able to get the JavaScript using PdfReader.getJavaScript 
> but I am not able to get the javascript associated with my actions

Actions are stored in a PDF document as a PDF dictionary.
You can ask PdfReader to return any object in a PDF,
including an action dictionary that is attached to the
field dictionary of your button.
There is no simple way to explain how to do this. You will
have to read the PDF Reference for a more complete answer.

Or maybe you may want to try PdfCopyFields instead of
PdfCopy. PdfCopyFields preserves the forms in the documents
that are merged (a button is part of a form).

br,
Bruno

------------------------------------------------------------------------
-
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=DEVDE
V
_______________________________________________
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/

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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/

Reply via email to