FileDataSource
Overview
FileDataSource is a class in Aspose.PDF FOSS for Python.
Inherits from: DataSource.
A data source backed by a file on disk.
This class provides 3 methods for working with FileDataSource 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: path.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
path | `` | Read | Gets the path. |
Methods
| Signature | Description |
|---|---|
__init__(path: str | Path) | Calls init(path) on this FileDataSource instance. |
read_bytes(limits: PdfLoadLimits | None) → bytes | Calls read_bytes(limits) on this FileDataSource instance. |
write_bytes(data: bytes) | Calls write_bytes(data) on this FileDataSource instance. |