Skip to main content

parse_pdf_document

Function parse_pdf_document 

Source
pub fn parse_pdf_document(text: &str) -> FormattingDocument
Expand description

Parses a PDF written in the documented text profile back into the language-free concept layer.

Returns an empty document when no recognizable profile content stream is present, so general (out-of-profile) PDFs degrade gracefully rather than producing a corrupt tree.