1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//! # docx-lite
//!
//! A lightweight, fast DOCX text extraction library with minimal dependencies.
//!
//! ## Features
//! - Zero unsafe code
//! - Minimal dependencies (only zip, quick-xml, thiserror)
//! - Fast text extraction
//! - Support for paragraphs, tables, and basic formatting
//! - Graceful error handling for malformed documents
//!
//! ## Quick Start
//!
//! ```no_run
//! use docx_lite::extract_text;
//!
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let text = extract_text("document.docx")?;
//! println!("{}", text);
//! Ok(())
//! }
//! ```
//!
//! ## Advanced Usage
//!
//! ```no_run
//! use docx_lite::parse_document_from_path;
//!
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let doc = parse_document_from_path("document.docx")?;
//!
//! for paragraph in &doc.paragraphs {
//! println!("Paragraph: {}", paragraph.to_text());
//! }
//!
//! for table in &doc.tables {
//! println!("Table with {} rows", table.rows.len());
//! }
//!
//! Ok(())
//! }
//! ```
// Re-export main types and functions
pub use ;
pub use ;
pub use ;