HtmlConverter

Defines methods and properties for the HTMLConverter.

public class HtmlConverter
Public Class HtmlConverter

Inheritance: ObjectHtmlConverter

Licensing Info

This class is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:

Examples

Example shows how to use HtmlConverter.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of HtmlConversionOptions.
    Dim conversionOptions As HtmlConversionOptions = New HtmlConversionOptions(True)
        
   ' Create new instance of Converter by providing suitable parameters.
    Dim htmlConverter As HtmlConverter = New HtmlConverter("C:\MyDocument.html",conversionOptions)

    ' Call Convert method to start conversion
    htmlConverter.Convert("C:\MyOutput.pdf")

End Sub
 
End Module
using ceTe.DynamicPDF.Conversion;

class MyClass
{
    static void Main()
    {
        // create new instance of HtmlConversionOptions.
        HtmlConversionOptions conversionOptions = new HtmlConversionOptions(true);
        
        // Create new instance of Converter by providing suitable parameters.
        HtmlConverter htmlConverter = new HtmlConverter(@"C:\MyDocument.html", conversionOptions);

        //Call Convert method to start conversion
        htmlConverter.Convert(@"C:\MyOutput.pdf");
    }
}

Constructors

HtmlConverter(String)Initializes a new instance of the HtmlConverter class.
HtmlConverter(String, HtmlConversionOptions)Initializes a new instance of the HtmlConverter class.
HtmlConverter(String, Uri)Initializes a new instance of the HtmlConverter class.
HtmlConverter(String, Uri, HtmlConversionOptions)Initializes a new instance of the HtmlConverter class.
HtmlConverter(Uri)Initializes a new instance of the HtmlConverter class.
HtmlConverter(Uri, HtmlConversionOptions)Initializes a new instance of the HtmlConverter class.

Properties

ChromiumProcessPathGets or sets the chromium Process directory path On Linux machine this should be set to the path where google-chrome is installed.
ConversionOptionsGets an instance of HtmlConversionOptions class.

Methods

Convert()Converts Html to Pdf
Convert(Byte[])Converts Html to Pdf
Convert(String)Converts Html to Pdf
ConvertAsync()Does the Asynchronous conversion
ConvertAsync(Byte[])Does the Asynchronous conversion
ConvertAsync(String)Does the Asynchronous conversion
Equals(Object)Determines whether the specified Object is equal to the current Object .
(Inherited from Object)
GetHashCode()Serves as a hash function for a particular type.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
ReleaseResources()Releases all cache setup for faster conversions in order to gain memory and storage space.
ToString()Returns a String that represents the current Object .
(Inherited from Object)

Events

HtmlConverter.CompletedOccurs when a document is successfully converted.
HtmlConverter.ProgressChangedOccurs when the status of a document conversion changes.

See Also

ceTe.DynamicPDF.Conversion

In this topic