Skip to main content

extract_text

Function extract_text 

Source
pub fn extract_text(
    path: &Path,
) -> Result<(String, ExtractionMethod), PdfExtractError>
Expand description

Extract text from a PDF file using the best available method.

Returns the extracted text content and the method used.

§Arguments

  • path - Path to the PDF file

§Returns

A tuple of (extracted text, extraction method used)