How represent HTML page as PDF document in ASP.NET
DuoDimension Software unveils PDF Duo .Net component, a fully-fledged HTML to PDF converter, that offers you an easy way to create/convert PDF documents from HTML web page in your own application or ASP.NET web site.
The main class HtmlToPdf provides all necessary methods and properties to enable multi-purpose customization of the resulting PDF. Here is the simplest example code that shows how to convert HTML to PDF in ASP.NET C# :
string file_html = @"http:\\www.sitecompany.com\html_pages\convert.html";
string file_pdf = @"http:\\www.sitecompany.com\pdf_doc\report.pdf";
try
{
DuoDimension.HtmlToPdf conv = new DuoDimension.HtmlToPdf();
conv.OpenHTML(file_html);
conv.SavePDF(file_pdf);
System.Diagnostics.Process.Start(file_pdf);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
Also installing package is provided with fully featured demos written in both C# and Visual Basic. Simple examples with source code help you using the PDF Duo .Net component to successfully convert HTML to PDF. The functionality of the converter cover many particular task:
- Create PDF document using string formed by HTML tags.
- Converting the HTML page from remote address using URL.
- Converting the HTML page represented as string with html tags.
- After converting HTML to PDF open resulting PDF in the browser window without saving it on the hard disk.
- & others.
More information about how to convert HTML to PDF with help of PDF Duo .Net component see on the publisher website
http://www.duodimension.com/html_pdf_asp.net/component_html_pdf.aspx
If you have any questions or concerns about component, let us know:
support@duodimension.com
P.S. Support team is very friendly & if you want add some functionality don't stay too long. Contact will give advantages to both sides.