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

How to convert a String HTML To PDF using Syncfusion PDF

Thread ID:





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

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 04:05 AM UTC

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 05:08 AM UTC

Hi Nestor,

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





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

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 07:00 AM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the 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