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. Image for the cookie policy date
close icon

Mail merging with PDF


I need to do sort of a mail merge thing using the pdf library. So, I have a template with some placeholders which I need to populate with data.

I guess the only way to do that is to create a template that uses form fields and I fill in those form fields during the mail merge action. However I do NOT want the resulting document to contain the form fields; that should just be flat text. Is there anyway to do that (other than setting the form fields ReadOnly property to "true")?


3 Replies

KC Karthikeyan Chandrasekar Syncfusion Team September 29, 2014 06:47 AM UTC

Hi Rick,

Thank you for your interest in Syncfusion Products.


We can able to fill the form fields of the template and flatten the PDF document. Please find the online sample for filling the Pdf form template.



Use the below code snippet for flattening the PDF document.

            PdfLoadedDocument.Form.Flatten = true;



Please let us know if you have any concern.




RL Rick Langevoort September 29, 2014 01:01 PM UTC

Great, that worked! Thanks!

KC Karthikeyan Chandrasekar Syncfusion Team October 1, 2014 06:03 AM UTC

Hi Rick,

Thank you for your update, please let us know if you need any further assistance.




Live Chat Icon For mobile
Up arrow icon