We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to specify the javascript file to PdfJavaScriptAction

Thread ID:





126339 Oct 8,2016 11:14 PM Oct 10,2016 08:44 AM WPF 1
Tags: PDF
Asked On October 8, 2016 11:14 PM

I want to specify the javascript file to PdfJavaScriptAction, but I checked the sample file, it only specify one command in it. Just like beow:
PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert('JavaScript Action')");

Could you tell me how to specify the javascript file?

Chinnu Muniyappan [Syncfusion]
Replied On October 10, 2016 08:44 AM

Hi An, 
Thank you for contacting Syncfusion support. 
We do only support for providing java script as text in PdfJavaScriptAction, you can also provide a js file as text in JavaScript action. Please refer the below sample for more details. 
Sample link: 
And also refer the below link for more Java script API which is supported by adobe acrobat. 
Please let us know if you have any concern. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.