TextConverter

Defines methods and properties for the TextConverter.

public class TextConverter
Public Class TextConverter

Inheritance: ObjectTextConverter

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 use TextConverter class.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of TextConversionOptions.
    Dim conversionOptions As TextConversionOptions = New TextConversionOptions(True)
    
   ' Create new instance of Converter by providing suitable parameters.
    Dim txtConversion As TextConverter = New TextConverter(File.ReadAllText("C:\MyDocument.txt",conversionOptions)

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

End Sub
 
End Module
using ceTe.DynamicPDF.Conversion;

class MyClass
{
    static void Main()
    {
        // create new instance of TextConversionOptions.
        TextConversionOptions conversionOptions=new TextConversionOptions(true);

        // Create new instance of Converter by providing suitable parameters.
        TextConverter txt = new TextConverter(File.ReadAllText(@"C:\MyDocument.txt",conversionOptions);
        
        //Call Convert method to start conversion
        txt.Convert(@"C:\MyOutput.pdf");
    }
}

Constructors

TextConverter(String)Creates an instance of the TextConverter class.
TextConverter(String, TextConversionOptions)Creates an instance of the TextConverter class.

Properties

ConversionOptionsGets an instance of the TextConverter class.

Methods

Convert()Convert Text to Pdf
Convert(Byte[])Coverts Text to Pdf
Convert(String)Coverts Text to Pdf
ConvertAsync()Does the Asynchronous conversion
ConvertAsync(Byte[])Coverts Text to Pdf
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)
ToString()Returns a String that represents the current Object .
(Inherited from Object)

Events

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

See Also

ceTe.DynamicPDF.Conversion

In this topic