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. Image for the cookie policy date
close icon

How to specify the javascript file to PdfJavaScriptAction

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?

1 Reply

CM Chinnu Muniyappan Syncfusion Team October 10, 2016 12:44 PM UTC

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. 

Live Chat Icon For mobile
Up arrow icon