DocumentFormatReader
General
DocumentFormatReader is a class in Aspose.Words for Python.
Inherits from: Protocol.
DocumentFormatReader és una classe en Aspose.Words per a Python. Hereta de: ̋Protocol ∂ .
Protocol que defineix la interfície que tots els lectors de documents han d’implementar.
Mètodes
| Signature | Description |
|---|---|
load_file(filepath: Union[str, Path]) | Loads a document from a file path (str or Path) into the reader |
load_stream(stream: BinaryIO) | Loads a document from a binary stream |
load_bytes(data: bytes) | Loads a document from raw bytes into the reader |
to_light_document() → ldm.Document | Converts the loaded content to a light document |