I am working on an application which takes an existing pdf form and
prepopulates it with data (I use iText to do that) and outputs that
prepopulated form to the browser. The pdf form has some javascript included
in it to perform auto tabbing on completion of fields. I have been able to
get the relevant javascript function transferred across into the
prepopulated form by use of

String js = singlePDF.getJavaScript();

PdfStamper stamper = new PdfStamper(singlePDF, pdfStream);

//prepopulate fields

stamper.addJavaScript(js);

However I cannot find any way that allows me to associate the javascript
function with the text fields to which it is to be applied. Can it be done
? Ideally I want to copy across the existing javascript call for each
field. Alternatively can I add a javascript action/event to the text fields
using iText ?

Any help would be much appreciated.

Irene





For more information on Standard Life, visit our website
http://www.standardlife.co.uk/

The Standard Life Assurance Company, Standard Life House, 30 Lothian Road,
Edinburgh EH1 2DH, is registered in Scotland (No. SZ4) and is authorised
and regulated by the Financial Services Authority. Tel: 0131 225 2552 -
calls may be recorded or monitored. This confidential e-mail is for the
addressee only. If received in error, do not retain/copy/disclose it
without our consent and please return it to us. We virus scan and monitor
all e-mails but are not responsible for any damage caused by a virus or
alteration by a third party after it is sent.



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to