DmlRenderingMode Enumeration |
Specifies how DrawingML shapes are rendered to fixed page formats.
Syntax
public enum DmlRenderingMode
Public Enumeration DmlRenderingMode
public enum class DmlRenderingMode
Members
| Member name | Value | Description |
---|
| Fallback | 0 |
If fall-back shape is available for DrawingML, Aspose.Words renders fall-back shape instead of the DrawingML.
|
| DrawingML | 1 |
Aspose.Words ignores fall-back shape of DrawingML and renders DrawingML itself.
This is the default mode.
|
Examples
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 the rendering quality of DrawingML effects in a document as we save it to PDF.
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);
See Also