AsyncConversion [Obsolete]

Obsolete. Represents an asynchronous conversion process.

public class AsyncConversion
Public Class AsyncConversion

Inheritance: ObjectAsyncConversion

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 files asynchronously.
Imports System
Imports ceTe.DynamicPDF.Conversion

Module Module1

    Sub Main()

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

        ' 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")
        While (True)
            If (asyncConversion.Completed) Then
                Dim MyData() As Byte = asyncConversion.GetOutputData()
                Exit While
            End If
        End While
   End Sub

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

class MyClass
{
    static void Main()
    {
        // create an instance of AsyncConverter
        AsyncConverter converter = new AsyncConverter();
      
        // Call Convert method to start conversion asynchronously and  Get the status of conversion
        AsyncConversion asyncConversion = converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf");               
        while(true)
        {
            if (asyncConversion.Completed)
            {
                byte[] MyData = asyncConversion.GetOutputData();
                break;
            }
        }
    }      
}

Remarks

NOTE: This class is obsolete. Use ConvertAsync(System.String) method instead.

Properties

AbortedGets an indication whether the asynchronous operation has aborted.
CompletedGets an indication whether the asynchronous operation has completed.
ExceptionGets the exception that occurred during the conversion operation.

Methods

Abort()Abort the asynchronous conversion request.
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)
GetOutputData()Returns the byte array of the converted pdf.
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