Hi all,
I have created one swf file, in which it will run with the help of
some external files (5 mp3 files, 2 xml files, and 6 image files). When I
have create the pdf using itext I can only able to embedded the swf file
alone. How should able to add these external files to run the swf. It
would be helpful if you give some sample.
*I have tried the code was below*
RichMediaAnnotation richMedia = new RichMediaAnnotation(writer, new
Rectangle(36, 500, 559,806));
PdfFileSpecification fs = PdfFileSpecification.fileEmbedded(writer,
"pdfOutput/sample1.swf", "hellow.swf", null);
PdfIndirectReference asset = richMedia.addAsset("pdfOutput/sample1.swf", fs
);
richMedia.addAsset("pdfOutput/samxml.xml", asset);
RichMediaConfiguration configuration = new RichMediaConfiguration(PdfName.
FLASH);
RichMediaInstance instance = new RichMediaInstance(PdfName.FLASH);
RichMediaParams flashVars = new RichMediaParams();
String FalVar = new String("&one="+nam+"&two="+Fnam);
String vars = new String(FalVar);
flashVars.setFlashVars(vars);
instance.setParams(flashVars);
instance.setAsset(asset);
configuration.addInstance(instance);
Can anyone please guide me, have I gone any mistake on this.
Thanks in advance,
Shri Saravanan
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
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