DocFileReader

DocFileReader

概述

DocFileReader 是 Aspose.Words for Python 中的一个类。

读取 Word 97-2003(.doc)文件并生成相同的数据结构

作为 DocumentReader(针对 .docx),实现透明的格式支持。

方法

签名描述
__init__()
load_file(filepath: Union[str, Path])从文件路径加载 .doc。
load_stream(stream: BinaryIO)从流加载 .doc。
load_bytes(data: bytes)从字节加载 .doc。
to_light_document()ldm.Document从已加载的 DOC 文件构建 light_document_model.Document。
 中文