Could someone please tell me how I could programmatically add javascript to
an existing button named "button1" in an acroform of an existing pdf using
itext.
I currently add javascript to the document for a "DID PRINT" event:
.........
...........
String javascript = .....
....................
PdfCopyFields pcf = new PdfCopyFields(baos);
pcf.addDocument(reader);
PdfAction paction = PdfAction.javaScript(javascript, pcf.getWriter());
pcf.getWriter().setAdditionalAction(PdfName.DP, paction);
..........
............
I would like to add the same javascript to a button to be executed on a
MOUSE UP event. I am able to add a new button to the document and add an
action...but not to an existing button.
Any help would be appreciated!
Thank you.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php