SaveOptionsDmlRenderingMode Property

Gets or sets a value determining how DrawingML shapes are rendered.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.10.0

ExpandedSyntax

public DmlRenderingMode DmlRenderingMode { get; set; }

Property Value

Type: DmlRenderingMode

ExpandedRemarks

The default value is Fallback.

This property is used when the document is exported to fixed page formats.

ExpandedExamples

Shows how to render fallback shapes when saving to Pdf.
Document doc = new Document(MyDir + "DrawingML shape fallbacks.docx");

PdfSaveOptions options = new PdfSaveOptions();
options.DmlRenderingMode = dmlRenderingMode;

doc.Save(ArtifactsDir + "PdfSaveOptions.DrawingMLFallback.pdf", options);
Shows how to configure DrawingML rendering quality with PdfSaveOptions.
Document doc = new Document(MyDir + "DrawingML shape effects.docx");

PdfSaveOptions options = new PdfSaveOptions();
options.DmlEffectsRenderingMode = effectsRenderingMode;

Assert.AreEqual(DmlRenderingMode.DrawingML, options.DmlRenderingMode);

doc.Save(ArtifactsDir + "PdfSaveOptions.DrawingMLEffects.pdf", options);

ExpandedSee Also