Skip to main content

pdf_text

Function pdf_text 

Source
pub fn pdf_text(bytes: &[u8]) -> PdfDocument
Expand description

Extract the text layer of a PDF.

Never fails: a document with no recoverable text comes back with an empty pages, which the caller renders as an honest structured summary rather than as silence.