Are you trying to use HTML javaScript in a PDF? PDF documents use the same core JavaScript, but have a COMPLETELY DIFFERENT DOM. Perhaps you need to rewrite the JS?
Also, how is the SWF calling the JS? Have you ensured that the communications channel is the same? -----Original Message----- From: rami issa [mailto:[email protected]] Sent: Sunday, October 17, 2010 5:35 AM To: [email protected] Subject: [iText-questions] Javascript And Flash In PDF Created by IText Hii We Have Flash (swf file) that calls Javascript functions. In Html , When We embed the flash and add the script to the header of the html file, the flash calls the javascript functions and get the data from these functions. when I try to do the same with PDF it doesnt work for me, here are the steps I do: add javascript to pdf with by the function : writer.AddJavaScript( use Annotation to embed flash in the PDF:PdfFileSpecification iTextSharp.text.fs = PdfFileSpecification.FileEmbedded(writer, sFlashFileName, sFlashFileName,null);Rectanglerec = newiTextSharp.text.Rectangle(50f, 791f, 545f, 420f); PdfAnnotationflashInsert = PdfAnnotation.CreateScreen(writer, rect, "Flash Insert", fs, "application/x-shockwave-flash",false); "var data="...";var config="..."; function getData(){return data;} function getConfig(){return config;}"); I searched the examples the tutorials the book the Internet but I didnt find anything. please help us, we don't know if we buy the ITest solution or not because we don't know if this thing is possible or not. ________________________________ Rami Issa Software Developper www.Autofont.com ________________________________ ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions 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 ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions 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
