Gurla Prasad wrote: > Dear All, > > Is it possible to add javascript to a pdf (open event) using itextSharp? > I tried using pdfwriter and PdfAction.Javascript() and it does add the > javascript however, the annotation information in the pdf is lost. > > Is it possible to add javascript using pdfcopy so that the annotation > information is preserved?
Why PdfCopy? Adding JavaScript to existing documents is generally done with PdfStamper (as documented): http://itextpdf.com/examples/index.php?page=example&id=238 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/
