PreviewImage

Overview

PreviewImage is a class in Aspose.Font FOSS for Python.

PreviewImage.write_to(path) saves the generated PNG or SVG preview to the specified filesystem location and returns the Path object.

This class provides 1 method for working with PreviewImage objects in Python programs. Available methods include: write_to. All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package. Properties: data, filename, media_type.

Properties

NameTypeAccessDescription
filenamestrReadGets the filename.
media_typestrReadGets the media type.
databytesReadGets the data.

Methods

SignatureDescription
write_to(path: str | Path)PathSaves the generated PNG or SVG preview to the specified filesystem location and returns the Path object

See Also