Skip to main content

extract

Function extract 

Source
pub fn extract(path: &Path, bytes: &[u8]) -> Extracted
Expand 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.