Skip to main content

convert

Function convert 

Source
pub fn convert(
    input_path: &Path,
    config: &ProcessingConfig,
) -> Result<PdfDocument, EdgePdfError>
Expand description

Main entry point: convert a PDF file to structured data.

§Arguments

  • input_path - Path to the input PDF file
  • config - Processing configuration

§Returns

  • Result<PdfDocument> - The extracted structured document

§Errors

Returns an error if the PDF cannot be loaded or processed.