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
)
Public Shared Function ToXodAsync (
sourceFilter As IFilter,
xodFilter As IFilter,
options As XODOutputOptions
) As IAsyncAction
public:
static IAsyncAction^ ToXodAsync(
[InAttribute] IFilter^ sourceFilter,
[InAttribute] IFilter^ xodFilter,
[InAttribute] XODOutputOptions^ options
)
pdftron.PDF.Convert.ToXodAsync = function(sourceFilter, xodFilter, 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:
IAsyncActionAn 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