CoolUtils Logo
German  Italian  Dutch  Spanish  Korean  Russian

Convert HTML to PDF In C#

FREE DOWNLOAD
Buy Total HTML Converter X NOW!
(only $150.00)
html pdf converter in c#File conversion solves the problem of format incompatibility and allows using different information wider, changing its format from graphic to text or web file type. For instance, if to convert HTML to PDF you can save web-pages locally in a format convenient for viewing, printing or sharing.

Most of HTML converters are OS-oriented, means that you can use them locally on a personal computer. The conversion package that will run on a web-server is Total HTML Converter X. It can be handled via a command line or ActiveX technology that is used for launching applications in web browsers such as Internet Explorer or Mozilla.

HTML Converter X includes ActiveX which can be easily used in C#. This ActiveX has 2 main methods:

  1. Convert Method: the first parameter is the source file, the second is the target file, then there are all conversion parameters.
  2. ConvertToStream Method. You can stream resulting PDF straight to the user.
Here is an example:

<%
dim C
Set C=CreateObject("HTMLConverter.HTMLConverterX")
c.LogFile="c:\log.txt"
Response.Clear
Response.AddHeader "Content-Type", "binary/octet-stream"
Rresponse.AddHeader "Content-Disposition", "attachment; filename=test.pdf"
Response.BinaryWrite c.ConvertToStream("C:\www\ASP\Source.html", "C:\www\ASP", "-cpdf")
%> 

Some more samples in C# specifically for ASP.net

Using Total HTML ConverterX on a web-server you can make its functionality available on your own web-services that can be used by clients. In such a way your service users will be able to convert HTML files with no need to install a converter on their PC. All you need is do download the installation kit and activate a license for use.

Back to HTML Converter X Home

Buy Total HTML Converter X NOW!
    FREE DOWNLOAD  
(only $150.00)
   Updated Wed, 27 Sep 2017
Total HTML Converter X Preview1


Site Map  |  Contacts |  Press Center | Resellers | About |  Privacy Policy |    Copyright © 1998-2017 CoolUtils Development. All rights reserved.   GPlus