ImageConverter

Defines methods and properties for the ImageConverter.

public class ImageConverter
Public Class ImageConverter

Inheritance: ObjectImageConverter

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

Module Module1

Sub Main()

    ' create new instance of ImageConversionOptions.
    Dim conversionOptions As ImageConversionOptions = New ImageConversionOptions(True)
   ' Create new instance of Converter by providing suitable parameters.
    Dim imageConverter As ImageConverter = New ImageConverter("C:\MyDocument.jpg",conversionOptions)

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

End Sub
 
End Module
using ceTe.DynamicPDF.Conversion;

class MyClass
{
    static void Main()
    {
        // create new instance of ImageConversionOptions.
        ImageConversionOptions conversionOptions = new ImageConversionOptions(true);       
        
        // Create new instance of Converter by providing suitable parameters.
        ImageConverter imageConverter = new ImageConverter(@"C:\MyDocument.jpg", conversionOptions);

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

Constructors

ImageConverter(Byte[])Creates an instance of the ImageConverter class.
ImageConverter(Byte[], ImageConversionOptions)Creates an instance of the ImageConverter class.
ImageConverter(String)Creates an instance of the ImageConverter class.
ImageConverter(String, ImageConversionOptions)Creates an instance of the ImageConverter class.

Properties

ConversionOptionsGets the instance of the ImageConversionOptions class

Methods

Convert()Converts Image to Pdf
Convert(Byte[])Converts Image to Pdf
Convert(String)Converts Image 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)
ToString()Returns a String that represents the current Object .
(Inherited from Object)

Events

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

See Also

ceTe.DynamicPDF.Conversion

In this topic