DataSource

Overview

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

Base class for plugin inputs and outputs.

This class declares 2 methods for DataSource objects in Python programs. Available methods include: read_bytes, write_bytes. All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.

Methods

SignatureDescription
read_bytes(limits: PdfLoadLimits | None)bytesNot implemented in the FOSS edition — throws at runtime. Calls read_bytes(limits) on this DataSource instance.
write_bytes(data: bytes)Not implemented in the FOSS edition — throws at runtime. Calls write_bytes(data) on this DataSource instance.