Skip to main content

should_skip_processing

Function should_skip_processing 

Source
pub fn should_skip_processing<P1: AsRef<Path>, P2: AsRef<Path>>(
    source_path: P1,
    output_path: P2,
    options_json: &str,
    force: bool,
) -> Option<ProcessingCache>
Expand description

Check if processing should be skipped based on cache

§Arguments

  • source_path - Path to the source PDF
  • output_path - Path to the output PDF
  • options_json - JSON string of processing options
  • force - If true, always return false (force re-processing)

§Returns

Some(cache) if processing should be skipped, None otherwise