DmlEffectsRenderingMode

Inheritance: java.lang.Object

public class DmlEffectsRenderingMode

Specifies how DrawingML effects are rendered to fixed page formats.

Examples:

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

Fields

FieldDescription
FINEDrawingML effects are rendered in fine mode which involves advanced processing.
NONENo DrawingML effects are rendered.
SIMPLIFIEDRendering of DrawingML effects are simplified.
length

Methods

MethodDescription
fromName(String dmlEffectsRenderingModeName)
getName(int dmlEffectsRenderingMode)
getValues()
toString(int dmlEffectsRenderingMode)

FINE

public static 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.

NONE

public static int NONE

No DrawingML effects are rendered.

SIMPLIFIED

public static int SIMPLIFIED

Rendering of DrawingML effects are simplified.

length

public static int length

fromName(String dmlEffectsRenderingModeName)

public static int fromName(String dmlEffectsRenderingModeName)

Parameters:

ParameterTypeDescription
dmlEffectsRenderingModeNamejava.lang.String

Returns: int

getName(int dmlEffectsRenderingMode)

public static String getName(int dmlEffectsRenderingMode)

Parameters:

ParameterTypeDescription
dmlEffectsRenderingModeint

Returns: java.lang.String

getValues()

public static int[] getValues()

Returns: int[]

toString(int dmlEffectsRenderingMode)

public static String toString(int dmlEffectsRenderingMode)

Parameters:

ParameterTypeDescription
dmlEffectsRenderingModeint

Returns: java.lang.String