AsyncConversion.GetOutputData
Returns the byte array of the converted pdf.
public Byte[] GetOutputData()
Function GetOutputData() As Byte()
Returns
Byte array of the converted PDF.
Licensing Info
This method 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 make use of GetOutputData method of AsyncConversion.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' Create a 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")
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 a 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");
while(true)
{
if (asyncConversion.Completed)
{
byte[] MyData = asyncConversion.GetOutputData();
break;
}
}
}
}
Remarks
Should be used when call to convert method was made without output path parameter.