pub fn extract_text_from_bytes(bytes: &[u8]) -> Result<String>Expand description
Extracts all plain text from in-memory document bytes.
Detects DOCX/DOC from magic bytes and parses without touching the filesystem — suitable for fuzzing and embedded/streaming callers.
§Errors
Returns format errors if the bytes are not a supported document, or
parse errors from office_oxide.