ConvertedEventArgs

Provides data for the Converted event.

public class ConvertedEventArgs
Public Class ConvertedEventArgs

Inheritance: ObjectConvertedEventArgs

Derived: ConversionErrorEventArgs

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 make use of Converted event.
Imports System.IO
Imports ceTe.DynamicPDF.Conversion        

Module Module1

    Sub Main()

        ' create an instance of AsyncConverter
        Dim converter As AsyncConverter = New AsyncConverter          

        ' Events to know if conversion completed successfully or not
        AddHandler converter.Converted, AddressOf converter_Converted

        ' Call Convert method to start conversion asynchronously and  Get the status of conversion
        Dim asyncConversion As AsyncConversion = converter.Convert("C:\MyDocument.doc", "C:\MyOutput.pdf")
   
    End Sub

    Sub converter_Converted(ByVal sender As Object, ByVal e As ConvertedEventArgs)

        Console.WriteLine(e.SourceFilePath + " was converted successfully.")

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

class MyClass
{
    static void Main()
    {
        // create an instance of AsyncConverter
        AsyncConverter converter = new AsyncConverter();

        // Events to know if conversion completed successfully or not
        converter.Converted += new ConvertedEventHandler(converter_Converted);

        // Call Convert method to start conversion asynchronously and  Get the status of conversion
        AsyncConversion asyncConversion = converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf");

    }

    private static void converter_Converted(object sender, ConvertedEventArgs e)
    {
        Console.WriteLine(e.SourceFilePath + " was converted successfully.");
    }
    
}

Properties

OutputFilePathThe path where the converted output file will be stored.
SourceFilePathThe path of the input file to be converted.

Methods

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)

See Also

ceTe.DynamicPDF.Conversion

In this topic