com.aspose.words

Class DmlEffectsRenderingMode

  • java.lang.Object
    • com.aspose.words.DmlEffectsRenderingMode
public class DmlEffectsRenderingMode 
extends java.lang.Object

Utility class containing constants. Specifies how DrawingML effects are rendered to fixed page formats.

Example:

Shows how to configure the rendering quality of DrawingML effects in a document as we save it to PDF.
Document doc = new Document(getMyDir() + "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.setDmlEffectsRenderingMode(effectsRenderingMode);

Assert.assertEquals(DmlRenderingMode.DRAWING_ML, options.getDmlRenderingMode());

doc.save(getArtifactsDir() + "PdfSaveOptions.DrawingMLEffects.pdf", options);

Field Summary
static final intSIMPLIFIED = 0
Rendering of DrawingML effects are simplified.
static final intNONE = 1
No DrawingML effects are rendered.
static final intFINE = 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 SIMPLIFIED mode.
 

    • Field Detail

      • SIMPLIFIED = 0

        public static final int SIMPLIFIED
        Rendering of DrawingML effects are simplified.
      • NONE = 1

        public static final int NONE
        No DrawingML effects are rendered.
      • FINE = 2

        public static final int FINE
        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 SIMPLIFIED mode.