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(file_name=MY_DIR + 'Rendering.docx')
builder = aw.DocumentBuilder(doc=doc)
builder.font.size = 60
builder.writeln('Some text.')
options = aw.saving.ImageSaveOptions(aw.SaveFormat.JPEG)
doc.save(file_name=ARTIFACTS_DIR + 'Document.ImageSaveOptions.Default.jpg', save_options=options)
options.use_anti_aliasing = True
options.use_high_quality_rendering = True
doc.save(file_name=ARTIFACTS_DIR + 'Document.ImageSaveOptions.HighQuality.jpg', save_options=options)

See Also