Skip to main content

document_text

Function document_text 

Source
pub fn document_text(path: &Path) -> Result<String>
Expand description

Every character of text in the document, in one call.

This is what pdf_extract produces internally and what most callers actually want. It exists as its own entry point because the only way to ask for it used to be page_text(handle, 0), which reads like “give me the first page” and silently meant something else whenever the extractor emitted no page breaks.