概述
DocumentReader 是 Aspose.Words for Python 中的一个类。
读取 DOCX 文档并生成抽象的数据结构。
方法
| 签名 | 描述 |
|---|
__init__() | |
load_file(filepath: Union[str, Path]) | 从文件路径加载 DOCX。 |
load_stream(stream: BinaryIO) | 从流加载 DOCX。 |
load_bytes(data: bytes) | 从字节加载 DOCX。 |
to_light_document() → ldm.Document | 从已加载的 DOCX 构建 light_document_model.Document。 |