public class DmlEffectsRenderingMode
extends java.lang.Object
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);
| Modifier and Type | Field and Description |
|---|---|
static int |
FINE
DrawingML effects are rendered in fine mode which involves advanced processing.
|
static int |
length |
static int |
NONE
No DrawingML effects are rendered.
|
static int |
SIMPLIFIED
Rendering of DrawingML effects are simplified.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String dmlEffectsRenderingModeName) |
static java.lang.String |
getName(int dmlEffectsRenderingMode) |
static int[] |
getValues() |
static java.lang.String |
toString(int dmlEffectsRenderingMode) |
public static int SIMPLIFIED
public static int NONE
public static int FINE
SIMPLIFIED mode.public static int length