pub fn extract(path: &Path, bytes: &[u8]) -> ExtractedExpand description
Extract clean text + chunks from raw bytes, dispatching on path’s
extension. Binary formats (PDF) read from bytes; text formats decode UTF-8
lossily so malformed encodings still produce content.