use anyhow::Result; use std::path::Path; pub fn extract_text(path: &Path) -> Result { Ok(pdf_extract::extract_text(path)?) }