Click or drag to resize

ConvertToXodAsync Method (IFilter, IFilter, XODOutputOptions)

Converts the input to XOD format.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public static IAsyncAction ToXodAsync(
	IFilter sourceFilter,
	IFilter xodFilter,
	XODOutputOptions options
)

Parameters

sourceFilter
Type: pdftron.FiltersIFilter
The source filter.
xodFilter
Type: pdftron.FiltersIFilter
The destination filter.
options
Type: pdftron.PDFXODOutputOptions
Conversion options to use.

Return Value

Type: IAsyncAction
An object used for managing the asynchronous operation.
Remarks

Use this method to convert a file pointed by any Windows Runtime stream handles (i.e. IInputStream, IStorageFile, etc.). Wrap the Windows Runtime stream with PDFNet's filter classes, then pass it to this method.

Examples
IStorageFile source = ...
IStorageFile dest = ...
using (var sourceFileFilter = new StorageFileFilter(source))
using (var destFileFilter = new StorageFileFilter(dest, StorageFileRWMode.e_WriteOnly)) {
    await Convert.ToXodAsync(sourceFileFilter, destFileFilter);
}

See Also