Enum DmlEffectsRenderingMode

Enum DmlEffectsRenderingMode

Namespace: Aspose.Words.Saving
Assembly: Aspose.Words.dll (25.12.0)

Specifies how DrawingML effects are rendered to fixed page formats.

public enum DmlEffectsRenderingMode

Fields

Fine = 2

DrawingML effects are rendered in fine mode which involves advanced processing. In this mode rendering of effects gives better results but at a higher performance cost than Aspose.Words.Saving.DmlEffectsRenderingMode.Simplified mode.

None = 1

No DrawingML effects are rendered.

Simplified = 0

Rendering of DrawingML effects are simplified.

Examples

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");

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

                                                                                                                // Set the "DmlEffectsRenderingMode" property to "DmlEffectsRenderingMode.None" to discard all DrawingML effects.
                                                                                                                // Set the "DmlEffectsRenderingMode" property to "DmlEffectsRenderingMode.Simplified"
                                                                                                                // to render a simplified version of DrawingML effects.
                                                                                                                // Set the "DmlEffectsRenderingMode" property to "DmlEffectsRenderingMode.Fine" to
                                                                                                                // render DrawingML effects with more accuracy and also with more processing cost.
                                                                                                                options.DmlEffectsRenderingMode = effectsRenderingMode;

                                                                                                                Assert.That(options.DmlRenderingMode, Is.EqualTo(DmlRenderingMode.DrawingML));

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