Follow this article to add JavaScript to PDF using C#. It has details to set the IDE, a list of steps, and a sample code for working with PDF JS using C# by adding different types of scripts for various actions....actions, page-level actions, form field actions, button actions...