iml_rendering_mode property
SaveOptions.iml_rendering_mode property
Gets or sets a value determining how ink (InkML) objects are rendered.
@property
def iml_rendering_mode(self) -> aspose.words.saving.ImlRenderingMode:
...
@iml_rendering_mode.setter
def iml_rendering_mode(self, value: aspose.words.saving.ImlRenderingMode):
...
Remarks
The default value is ImlRenderingMode.INK_ML. This property is used when the document is exported to fixed page formats.
Examples
Shows how to render Ink object.
doc = aw.Document(file_name=MY_DIR + 'Ink object.docx')
# Set 'ImlRenderingMode.InkML' ignores fall-back shape of ink (InkML) object and renders InkML itself.
# If the rendering result is unsatisfactory,
# please use 'ImlRenderingMode.Fallback' to get a result similar to previous versions.
save_options = aw.saving.ImageSaveOptions(aw.SaveFormat.JPEG)
save_options.iml_rendering_mode = aw.saving.ImlRenderingMode.INK_ML
doc.save(file_name=ARTIFACTS_DIR + 'ImageSaveOptions.RenderInkObject.jpeg', save_options=save_options)
See Also
- module aspose.words.saving
- class SaveOptions