We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Javascript in PDF Form has no effect

Thread ID:





108379 Apr 17,2013 12:37 PM UTC Apr 21,2013 02:29 PM UTC ASP.NET Web Forms (Classic) 1
Tags: PDF
Patrick Garcia
Asked On April 17, 2013 12:37 PM UTC

At first, hi everybody

So i've registred because our company uses syncfusion a lot and sometimes there are strange effects showing up.
So my situation:
I have a PDF Template with some Fields.
In back I've set some javascript on the 'BeforeSave' event.
If i do save the document manually, it works fine.

But in code, we set the flag 'Flatten' of the PdfLoadedDocument to true and then save it with the save function.
But the javascript has no effect anymore. So i wonder, is the flatting done before the saving?
Is there a way to run the javascript before the flatting?
Another problem is: fields that are set to not visible, are rendered visible (i think its getting ignored at flatting)

Some ideas?
If needed, I can post more details or upload the pdf


Praveenkumar H [Syncfusion]
Replied On April 21, 2013 02:29 PM UTC

Hi Patrick,

Thank you for using Syncfusion Products.

Please create the new Direct trac incident with simplified sample project which reproduces the issue.
it will help us to investigate further in this issue. 

Please let us know if you have any concern.

With Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon