Hi All, I have a pdf designed in Live Cycle and it has a JS defined on a particular fields (I saw the XFA ) and here is the snippet defined in XFA
<event activity="initialize" name="event__initialize"> </event> It is defined such that if I open the pdf, the field on which it is defined has already been set value based on the function above. But for some reasons, I need to remove the XFA stream from the document (I can't help it) and hence the above functionality defined on the pdf is getting lost and when the filled PDF (using acro fields) is opened, the above JS does not execute. Now, I am trying to manually call this JS for this field (say SerialNumberField), so that when the filled pdf is opened, this particular fields value is calculated as above. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Call-javascript-function-on-initialize-tp3561029p3561029.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php