ConvertToXodAsync Method (IFilter, IFilter) |
Namespace: pdftron.PDF
public static IAsyncAction ToXodAsync( IFilter sourceFilter, IFilter xodFilter )
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.
IStorageFile source = ... IStorageFile dest = ... using (var sourceFileFilter = new StorageFileFilter(source)) using (var destFileFilter = new StorageFileFilter(dest, StorageFileRWMode.e_WriteOnly)) { await Convert.ToXodAsync(sourceFileFilter, destFileFilter); }