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

Mail merging with PDF

Hi,

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")?

Thanks,
Rick



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.

http://asp.syncfusion.com/demos/web/Pdf/FormFilling.aspx

 

Use the below code snippet for flattening the PDF document.

            PdfLoadedDocument.Form.Flatten = true;

http://help.syncfusion.com/cr/cref_files/windows%20forms/pdf/html/792241d0-56eb-d821-98b4-68b01270d405.htm

 

Please let us know if you have any concern.

 

Thanks,

Karthikeyan.C



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.

 

Thanks,

Karthikeyan.C


Loader.
Live Chat Icon For mobile
Up arrow icon