GenerationResult

GenerationResult

Overview

GenerationResult is a class in Aspose.OMR FOSS for Python.

The result of template generation: the page image(s) plus the .omr

template JSON describing element locations.

This class declares 3 methods for GenerationResult objects in Python programs. Available methods include: Save, SaveAsPdf, __init__. Public members are accessible to any Python application after installing the Aspose.OMR FOSS for Python package. Properties: ErrorCode, ErrorMessage, MultipageTemplateImages, Template, TemplateImage, Warnings.

Properties

NameTypeAccessDescription
ErrorCodeintReadGets the error code.
ErrorMessagestrReadGets the error message.
TemplatestrReadGets the template.
TemplateImagetyping.AnyReadGets the template image.
MultipageTemplateImageslist[typing.Any]ReadGets the multipage template images.
Warningslist[str]ReadGets the warnings.

Methods

SignatureDescription
__init__()Calls init on this GenerationResult instance.
Save(folder: str, name: str)Write PNG image(s) PLUS the .omr template file.
SaveAsPdf(folder: str, name: str)Compose page images into one flat multi-page PDF (+ .omr).

See Also