Skip to main content

extract

Function extract 

Source
pub fn extract(
    bytes: &[u8],
    mime: Option<&str>,
    filename: Option<&str>,
    opts: &Options,
) -> Result<String, DocError>
Expand description

Extract the text of a document.

mime and filename are hints; either may be None. Text longer than Options::max_output_chars is cut; use extract_detailed to learn whether that happened.