StreamDataSource
Overview
StreamDataSource is a class in Aspose.PDF FOSS for Python.
Inherits from: DataSource.
A data source backed by a binary stream (e.g.
This class provides 3 methods for working with StreamDataSource objects in Python programs.
Available methods include: __init__, read_bytes, write_bytes.
All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: name, stream.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
stream | `` | Read | Gets the stream. |
name | `` | Read | Gets the name. |
Methods
| Signature | Description |
|---|---|
__init__(stream: BinaryIO, name: str | None) | Calls init(stream, name) on this StreamDataSource instance. |
read_bytes(limits: PdfLoadLimits | None) → bytes | Calls read_bytes(limits) on this StreamDataSource instance. |
write_bytes(data: bytes) | Calls write_bytes(data) on this StreamDataSource instance. |