Skip to main content

load_pdf

Function load_pdf 

Source
pub fn load_pdf(
    path: &Path,
    _password: Option<&str>,
) -> Result<RawPdfDocument, EdgePdfError>
Expand description

Load a PDF file and extract basic structure.

§Arguments

  • path - Path to the PDF file
  • password - Optional decryption password

§Errors

Returns EdgePdfError::LoadError if the file cannot be read or parsed.