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
| Signature | Description |
|---|---|
__init__(value: bytes | str) | Calls init(value) on this OperationResult instance. |
is_string() → bool | Returns true if string is set. |
is_byte_array() → bool | Returns true if byte array is set. |
to_array() → bytes | Return the result as bytes (text is UTF-8 encoded). |
to_string() → str | Return 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. |