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.
Unfortunately, activation email could not send to your email. Please try again.

How to convert a String HTML To PDF using Syncfusion PDF

Thread ID:





116263 May 5,2014 10:00 AM Jul 14,2014 03:00 AM ASP.NET Web Forms (Classic) 4
Tags: PDF
Roimer Machacón Otero
Asked On May 5, 2014 10:00 AM

Hi, I'm trying to convert a string that containing a html format, sample 

"<html><head><title>DIV Contents</title></head><body> *Content in the body* </body></html>"

Now, I have not found in the documentation how to make this conversion.


KarthikeyanC [Syncfusion]
Replied On May 7, 2014 12:05 AM

Hi Nestor,

Thank you for your interest in Syncfusion Products.


We can able to convert HTML String to PDF document, I have attached a simple sample for your reference.


Please let us know if you need any further assistance.



KarthikeyanC [Syncfusion]
Replied On May 7, 2014 01:08 AM

Hi Nestor,

Please find the documentation link for converting HTML String to PDF Document below.





Roimer Machacón Otero
Replied On July 10, 2014 05:41 PM

Hi Karthikeyan.C, 

I have looked at the example attached, but I see that the pdf generated to press button isn´t the web page, 

My question is exist a posibility to generate pdf of the page where is the button to generate the file.

KarthikeyanC [Syncfusion]
Replied On July 14, 2014 03:00 AM

Hi Nestor,

Thank you for your update.


We can able to convert the HTML page where the button is present, please refer the below sample.





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.

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.