I use iTextSharp to fill in the PDF server-sided and return it so that the client can download it.
Here's the link to the pdf.
The problem is number 1. You can only fill in the PDF if you have one of the boxes checked. If none is checked, everything will be "empty". The content isn't removed and returns once a box has been checked.
Everything gets populated, but there is a problem. The checkbox gets checked, but the Javascript behind it doesn't fire. Any solutions?
When you use iText(Sharp) to fill in forms, Javascript events wont be triggered.
Many events make no sense, no focus is gained or lost, no keys are typed, iText(Sharp) directly changes the PDF objects, it does not emulate a person filling in the forms.
Furthermore, iText(Sharp) does not include a JavaScript execution environment with an Adobe Reader object model to begin with.
Any solutions?
While I wrote the above, @Bruno already explained in a comment that you can either