OperationResult

OperationResult

Overview

OperationResult is a class in Aspose.PDF FOSS for Python.

A single result produced by a plugin.

This class declares 6 methods for OperationResult objects in Python programs. Available methods include: __init__, is_byte_array, is_string, save, to_array, to_string. All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.

Methods

SignatureDescription
__init__(value: bytes | str)Calls init(value) on this OperationResult instance.
is_string()boolReturns true if string is set.
is_byte_array()boolReturns true if byte array is set.
to_array()bytesReturn the result as bytes (text is UTF-8 encoded).
to_string()strReturn the result as text (binary is UTF-8 decoded leniently).
save(destination: DataSource | str | Path | BinaryIO)Write the result to a data source, file path, or binary stream.