Gautam P wrote:
> I am trying to embed flash into PDF using iText library as Rich Media
> using RichMediaAnnotation class in the below code:
> 
> PdfWriter writer2 = PdfWriter.getInstance(document2, new
> FileOutputStream("c:\\temp\\portable_rias_template.pdf"));
> writer2.setPdfVersion(PdfWriter.VERSION_1_7);
> document2.open();
> PdfFileSpecification fs =
> PdfFileSpecification.fileEmbedded(writer2,"C:\\temp\\SaveSettings.swf","test",null);
> RichMediaAnnotation richAnote = new RichMediaAnnotation(writer2,new
> Rectangle(50,50,500,800));
> PdfIndirectReference pdfIndirectRef = richAnote.addAsset("test", fs);
> PdfAnnotation anote = richAnote.createAnnotation();
> writer2.addAnnotation(anote);
> 
> The above code doesn't add the swf. Please let me know where I am
> going wrong. If you have an example code, please do share.

RichMediaAnnotation has been removed from iText.
Currently it's only supported for paying customers.
(And it will remain that way for at least a year.)
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to