pub fn extract_text( path: &Path, ) -> Result<(String, ExtractionMethod), PdfExtractError>
Extract text from a PDF file using the best available method.
Returns the extracted text content and the method used.
path
A tuple of (extracted text, extraction method used)