GemBox Support Forum

Run JavaScript?

We have a single page PDF that we are populating with financial data. Some of the textboxes on the PDF are calculated behind the scenes via a JavaScript. Our issue is when we programmatically populate the fields the JavaScript does not execute to calculate the totals. If we programmatically populate the calculated totals we get odd errors when opening the PDF.

So is there a way to programmatically execute the JavaScript? I’ve seen reference to the “Action” in regards to this but nothing in the way of examples.

Any help would be greatlyappreciated.

GemBox.Pdf doesn’t support executing JavaScript actions and, unfortunately, I cannot offer you any workaround for this.