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:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
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
Aborted | Gets an indication whether the asynchronous operation has aborted. |
Completed | Gets an indication whether the asynchronous operation has completed. |
Exception | Gets 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) |