DmlEffectsRenderingMode
Contents
[
Hide
]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
Field | Description |
---|---|
FINE | DrawingML effects are rendered in fine mode which involves advanced processing. |
NONE | No DrawingML effects are rendered. |
SIMPLIFIED | Rendering of DrawingML effects are simplified. |
length |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
dmlEffectsRenderingModeName | java.lang.String |
Returns: int
getName(int dmlEffectsRenderingMode)
public static String getName(int dmlEffectsRenderingMode)
Parameters:
Parameter | Type | Description |
---|---|---|
dmlEffectsRenderingMode | int |
Returns: java.lang.String
getValues()
public static int[] getValues()
Returns: int[]
toString(int dmlEffectsRenderingMode)
public static String toString(int dmlEffectsRenderingMode)
Parameters:
Parameter | Type | Description |
---|---|---|
dmlEffectsRenderingMode | int |
Returns: java.lang.String