StreamDataSource

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

NameTypeAccessDescription
stream``ReadGets the stream.
name``ReadGets the name.

Methods

SignatureDescription
__init__(stream: BinaryIO, name: str | None)Calls init(stream, name) on this StreamDataSource instance.
read_bytes(limits: PdfLoadLimits | None)bytesCalls read_bytes(limits) on this StreamDataSource instance.
write_bytes(data: bytes)Calls write_bytes(data) on this StreamDataSource instance.

See Also