0

Possible Duplicate:
Problem adding javascript into PDF using iTextSharp

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?

Thanks in advance, Prasad.

Community
  • 1
  • 1
  • Could you post example code and PDF files if needed? I wrote up a quick sample (http://mattheyan.wordpress.com/2010/06/08/add-javascript-to-a-pdf-document-with-itextsharp/) which uses the PdfWriter, but it doesn't take into account annotations. – Bryan Matthews Jun 08 '10 at 18:50
  • @Bryan Matthews your blog is marked private, so we can't see your link – Christian Payne Feb 24 '11 at 22:04
  • @Christian Payne Thanks for pointing this out. I no longer use that blog. Updated link: http://endlessobsession.com/2010/06/10/add-javascript-to-a-pdf-document-with-itextsharp/ – Bryan Matthews Jun 30 '11 at 15:55
  • Actually, that would be: http://endlessobsession.com/blog/add-javascript-to-a-pdf-document-with-itextsharp/ – Bryan Matthews Jul 20 '14 at 03:24

0 Answers0