DocumentReader
Overview
DocumentReader is a class in Aspose.Words FOSS for Python.
Inherits from: LdmBuilderMixin, ShapeParserMixin.
Reads DOCX documents and produces abstracted data structures.
This class provides 5 methods for working with DocumentReader objects in Python programs.
Available methods include: __init__, load_bytes, load_file, load_stream, to_light_document.
All public members are accessible to any Python application after installing the Aspose.Words FOSS for Python package.
Methods
| Signature | Description |
|---|---|
__init__() | |
load_file(filepath: Union[str, Path]) | Load DOCX from file path. |
load_stream(stream: BinaryIO) | Load DOCX from stream. |
load_bytes(data: bytes) | Load DOCX from bytes. |
to_light_document() → ldm.Document | Build a :class:ldm.Document from the loaded DOCX. |