Converter

Represents a synchronized conversion.Defines method and properties for Conversion.

public class Converter
Public Class Converter

Inheritance: ObjectConverter

Derived: AsyncConverter

Licensing Info

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

Examples

This example shows how to convert source file to PDF file.
Imports ceTe.DynamicPDF.Conversion

Module Module1

    Sub Main()      

        ' Call convert method to do conversion
        Converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf")

    End Sub

End Module
using System;
using ceTe.DynamicPDF.Conversion;

class MyClass
{
    static void Main()
    {        
        // Call convert method to do conversion
        Converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf");         
    }      
}

Remarks

For Asynchronized conversion, refer AsyncConverter .

Methods

AddLicense(String)Adds a license key to license the product. True, if the license is valid.
Convert(Byte[], String)Converts the source byte array to PDF.
Convert(Byte[], String, ConversionOptions)Converts the source byte array to PDF.
Convert(Byte[], String, ConversionOptions, Byte[])Converts the source byte array to PDF and get the output as byte array.
Convert(Byte[], String, String)Converts the source byte array to a PDF of the given name.
Convert(Byte[], String, String, ConversionOptions)Converts the source byte array to a PDF of the given name.
Convert(String)Converts the source file to PDF and get the output as byte array.
Convert(String, ConversionOptions)Converts the source file to PDF.
Convert(String, ConversionOptions, Byte[])Converts the source file to PDF.
Convert(String, String)Converts the source file to a PDF of the given name.
Convert(String, String, ConversionOptions)Converts the source file to a PDF of the given name.
ConvertAsync(Byte[], String)Performs Asynchronous conversion.
ConvertAsync(Byte[], String, ConversionOptions)Performs Asynchronous conversion.
ConvertAsync(Byte[], String, ConversionOptions, Byte[])Performs Asynchronous conversion.
ConvertAsync(Byte[], String, String)Performs Asynchronous conversion.
ConvertAsync(Byte[], String, String, ConversionOptions)Performs Asynchronous conversion.
ConvertAsync(String)Performs Asynchronous conversion.
ConvertAsync(String, ConversionOptions)Performs Asynchronous conversion.
ConvertAsync(String, ConversionOptions, Byte[])Performs Asynchronous conversion.
ConvertAsync(String, String)Performs Asynchronous conversion.
ConvertAsync(String, String, ConversionOptions)Performs Asynchronous conversion.
ConvertHtmlString(String)Converts the HTML string to PDF and get the output PDF as byte array.
ConvertHtmlString(String, HtmlConversionOptions)Converts the HTML string to PDF and get the output PDF as byte array.
ConvertHtmlString(String, HtmlConversionOptions, Byte[])Converts the HTML string to PDF and get the output PDF as byte array.
ConvertHtmlString(String, String)Converts the HTML string to PDF of the given name.
ConvertHtmlString(String, String, HtmlConversionOptions)Converts the HTML string to PDF of the given name.
ConvertHtmlStringAsync(String)Converts the HTML string to PDF of the given name.
ConvertHtmlStringAsync(String, HtmlConversionOptions)Converts the HTML string to PDF of the given name.
ConvertHtmlStringAsync(String, HtmlConversionOptions, Byte[])Converts the HTML string to PDF of the given name.
ConvertHtmlStringAsync(String, String)Converts the HTML string to PDF of the given name.
ConvertHtmlStringAsync(String, String, HtmlConversionOptions)Converts the HTML string to PDF of the given name.
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)
ToString()Returns a String that represents the current Object .
(Inherited from Object)

Events

Converter.ConversionErrorOccurs when a conversion error occurs.
Converter.ConvertedOccurs when a document is successfully converted.
Converter.ProgressChangedOccurs when the status of a document conversion changes.

See Also

ceTe.DynamicPDF.Conversion

In this topic