pub fn extract_text(doc: &Document) -> Vec<TextBlock>
Extract text blocks from all pages of a document.