We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Java Scripts in PDF

Hello,

I am a newbie in forum and evaluating Aspose for ,net for one of my client. Few basic requirements are
1) Ability to show a popup in case a checkbox is selected
2) Selectively show/hide text box, check box / radio button based upon a previous response question
3) Ability for Duplex printing
Can you please help if the above features are available.
Regards,
Cenot

cmaaniah:
1) Ability to show a popup in case a checkbox is selected
2) Selectively show/hide text box, check box / radio button based upon a previous response question
Hi Cenot,

Thanks for your interest in our API’s.

In order to accomplish your requirements, please try using following code snippet.

[C#]

FormEditor formEditor = new FormEditor();<o:p></o:p>

formEditor.BindPdf(TestSettings.GetInputFile("34248.pdf"));

//set JavaScript

formEditor.SetFieldScript("CB1", "this.getField('CB1').display = display.hidden;");

//set JavaScript

formEditor.SetFieldScript("bt1", "this.getField('bt1').display = display.hidden;");

//save update document

formEditor.Save(TestSettings.GetOutputFile(“34248.pdf”));


cmaaniah:
3) Ability for Duplex printing
Please visit the following link Printing pages in Simplex and Duplex mode