PDF is a rich document format in terms of versatility and features. One of the major advantages of PDF is its consistent layout across heterogeneous platforms. Moreover, it has the ability to be displayed in desktop applications and web browsers at the same time. This is the reason that PDF files are capable of running JavaScript. In this article, we will demonstrate how to add or remove JavaScript in PDF files using C#.