use_high_quality_rendering property

SaveOptions.use_high_quality_rendering property

Gets or sets a value determining whether or not to use high quality (i.e. slow) rendering algorithms.

@property
def use_high_quality_rendering(self) -> bool:
    ...

@use_high_quality_rendering.setter
def use_high_quality_rendering(self, value: bool):
    ...

Remarks

The default value is False. This property is used when the document is exported to image formats: SaveFormat.TIFF, SaveFormat.PNG, SaveFormat.BMP, SaveFormat.JPEG, SaveFormat.EMF.

Examples

Shows how to improve the quality of a rendered document with SaveOptions.

doc = aw.Document(MY_DIR + 'Rendering.docx')
builder = aw.DocumentBuilder(doc)
builder.font.size = 60
builder.writeln('Some text.')
options = aw.saving.ImageSaveOptions(aw.SaveFormat.JPEG)
doc.save(ARTIFACTS_DIR + 'Document.image_save_options.default.jpg', options)
options.use_anti_aliasing = True
options.use_high_quality_rendering = True
doc.save(ARTIFACTS_DIR + 'Document.image_save_options.high_quality.jpg', options)

See Also