Expand description
DOCX/DOC 文档读取器。
提供文本提取、表格读取和流式文档分析,底层包装 office_oxide 解析器。
对应 Java: com.alibaba.excel (EasyExcel 读取层)
Re-exports§
pub use extractor::numbering::Numbering;pub use extractor::sax::DocxSaxReader;pub use extractor::DocumentFormat;pub use extractor::detect_format;pub use extractor::detect_format_from_bytes;pub use view::ViewMode;pub use view::render_view;
Modules§
- extractor
- Content extractors for DOCX/DOC files.
- security
- Security guards for SSRF protection and ZIP bomb / element explosion prevention.
- view
- 面向 LLM 的文档视图模式。
Structs§
- Collect
Listener - 将所有项收集到
Vec<T>中的监听器,用于同步读取。 - DocRead
Builder - 流式文档读取的 Fluent 构建器。
Functions§
- read_
document - 读取 DOC 或 DOCX,并转换为不暴露底层解析器类型的语义文档。
- read_
document_ from_ bytes - 从内存字节读取 DOC/DOCX 语义文档模型(不触碰文件系统)。
- read_
tables - 同步读取文档中的所有表格,将每行反序列化为
Vec<T>。 - read_
text - 同步读取文档中的所有纯文本。
- read_
text_ from_ bytes - 从内存字节同步读取文档纯文本(不触碰文件系统)。