Expand description
§CLI EPUB to Text Converter
A Rust library for converting EPUB files to plain text with proper error handling.
§Features
- Extract text content from EPUB files
- Preserve reading order as defined in the EPUB spine
- Convert HTML content to plain text
- Comprehensive error handling with custom error types
- Unicode support for international content
§Usage
use cli_epub_to_text::epub_to_text;
match epub_to_text("path/to/book.epub") {
Ok(text) => println!("Extracted text: {}", text),
Err(e) => eprintln!("Error: {}", e),
}
Enums§
- Epub
Error - Custom error type for EPUB processing errors
Functions§
- epub_
to_ text - Convert an EPUB file to plain text