Click or drag to resize

ConvertFromEmfAsync Method (PDFDoc, IFilter)

Convert the specified CAD file to PDF and append converted pages to the specified PDF document. This conversion requires that the optional PDFTron CAD add-on module is available. See also: the 'CADModule' class
Converts the specified EMF file to PDF and append converted pages to the specified PDF document. The EMF will be fitted to the page.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public static IAsyncAction FromEmfAsync(
	PDFDoc doc,
	IFilter filter
)

Parameters

doc
Type: pdftron.PDFPDFDoc
The PDFDoc to append to.
filter
Type: pdftron.FiltersIFilter
The source filter of the EMF document to convert.

Return Value

Type: IAsyncAction
An object used for managing the asynchronous operation.
Remarks
See the `CADConvertOptions` class for the available options.
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 file = ...
using (var fileFilter = new IStorageFileFilter(file)) {
    var doc = new PDFDoc();
    await Convert.FromEmfAsync(doc, fileFilter);
}
See Also