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.

def use_high_quality_rendering(self) -> bool:

def use_high_quality_rendering(self, value: bool):


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.


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) + "Document.image_save_options.default.jpg", options)

options.use_anti_aliasing = True
options.use_high_quality_rendering = True + "Document.image_save_options.high_quality.jpg", options)

See Also