java.lang.Object
com.aspose.words.DmlRenderingMode
public class DmlRenderingMode
- extends java.lang.Object
Utility class containing constants.
Specifies how DrawingML shapes are rendered to fixed page formats.
Example:
Shows how to define rendering for DML shapes
Document doc = DocumentHelper.createDocumentFillWithDummyText();
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.setDmlRenderingMode(DmlRenderingMode.DRAWING_ML);
doc.save(getArtifactsDir() + "DrawingMl.pdf", pdfSaveOptions);
Example:
Shows how to configure DrawingML rendering quality with PdfSaveOptions.
Document doc = new Document(getMyDir() + "DrawingMLEffects.docx");
// Creating a new PdfSaveOptions object and setting its DmlEffectsRenderingMode to "None" will
// strip the shapes of all their shading effects in the output pdf
PdfSaveOptions options = new PdfSaveOptions();
options.setDmlEffectsRenderingMode(DmlEffectsRenderingMode.NONE);
doc.save(getArtifactsDir() + "PdfSaveOptions.DrawingML.pdf", options);
Field Summary |
static final int | FALLBACK = 0 | |
If fall-back shape is available for DrawingML, Aspose.Words renders fall-back shape instead of the DrawingML.
|
static final int | DRAWING_ML = 1 | |
Aspose.Words ignores fall-back shape of DrawingML and renders DrawingML itself.
This is the default mode.
|
FALLBACK = 0 | |
public static final int FALLBACK |
-
If fall-back shape is available for DrawingML, Aspose.Words renders fall-back shape instead of the DrawingML.
Please note that after saving a document to a fixed page format with fall-back DML rendering mode,
DML shapes in the AW document model are permanently replaced with their fall-back counterparts.
As a result, saving the same document again will always use fall-back shapes, even if DmlRenderingMode is set to DrawingML.
DRAWING_ML = 1 | |
public static final int DRAWING_ML |
-
Aspose.Words ignores fall-back shape of DrawingML and renders DrawingML itself.
This is the default mode.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.