Adding JavaScript to PDF document

Hey guys,

Is it possible to add JavaScript to the existing document using Pdf.Kit or any other components?

Ideally, we want to be able to add security and javascripts during conversion of the Word documents to Pdf. Currently we use Aspose.Pdf and Word to convert documents, but then you guys added direct conversion from Word document to the PDF. And the problem is that this method doesn't support adding JS and Security settings to the final PDF document.

Thanks,

Anton

Hi Anton,

Aspose.Pdf.Kit allows you to manipulate existing PDF files. It provides you security and limited Javascript features.

For security, please visit this link: Implementing Security

In order to add javascript, you can use SetFieldScript and CreateJavaScriptLink, and AddDocumentAdditianalAction methods.

If you would like to have some other feature, please share your thoughts. Also, if you would like to know more about the security and javascript features to be used during the conversion process of Word to PDF, then please post your question in Aspose.Pdf forum.

Regards,

Thanks for your answer.

Anton