AsyncConversion.GetOutputData

Returns the byte array of the converted pdf.

public Byte[] GetOutputData()

Returns

Byte[]

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:

Examples

This example shows how to make use of GetOutputData method of AsyncConversion.
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.

See Also

AsyncConversion
ceTe.DynamicPDF.Conversion