EmfPlusDualRenderingMode enumeration

EmfPlusDualRenderingMode enumeration

Specifies how Aspose.Words should render EMF+ Dual metafiles.

Members

NameDescription
EmfPlusWithFallbackAspose.Words tries to render EMF+ part of EMF+ Dual metafile. If some of the EMF+ records are not supported then Aspose.Words renders EMF part of EMF+ Dual metafile.
EmfPlusAspose.Words renders EMF+ part of EMF+ Dual metafile.
EmfAspose.Words renders EMF part of EMF+ Dual metafile.

Examples

Shows how to configure Enhanced Windows Metafile-related rendering options when saving to PDF.

let doc = new aw.Document(base.myDir + "EMF.docx");

// Create a "PdfSaveOptions" object that we can pass to the document's "Save" method
// to modify how that method converts the document to .PDF.
let saveOptions = new aw.Saving.PdfSaveOptions();

// Set the "EmfPlusDualRenderingMode" property to "EmfPlusDualRenderingMode.Emf"
// to only render the EMF part of an EMF+ dual metafile.
// Set the "EmfPlusDualRenderingMode" property to "EmfPlusDualRenderingMode.EmfPlus" to
// to render the EMF+ part of an EMF+ dual metafile.
// Set the "EmfPlusDualRenderingMode" property to "EmfPlusDualRenderingMode.EmfPlusWithFallback"
// to render the EMF+ part of an EMF+ dual metafile if all of the EMF+ records are supported.
// Otherwise, Aspose.words will render the EMF part.
saveOptions.metafileRenderingOptions.emfPlusDualRenderingMode = renderingMode;

// Set the "UseEmfEmbeddedToWmf" property to "true" to render embedded EMF data
// for metafiles that we can render as vector graphics.
saveOptions.metafileRenderingOptions.useEmfEmbeddedToWmf = true;

doc.save(base.artifactsDir + "PdfSaveOptions.RenderMetafile.pdf", saveOptions);

See Also