Skip to main content

extract_section

Function extract_section 

Source
pub fn extract_section(full_text: &str, heading: &str) -> Option<String>
Expand description

Extract one section from PDF text by heading name (case-insensitive).

Returns None when the heading is not found or the slice is empty.