fz_pdfocr_progress_fn

Type Alias fz_pdfocr_progress_fn 

Source
pub type fz_pdfocr_progress_fn = Option<unsafe extern "C" fn(ctx: *mut fz_context, progress_arg: *mut c_void, page: c_int, percent: c_int) -> c_int>;
Expand description

Used to report progress of the OCR operation.

page: Current page being processed.

percent: Progress of the OCR operation for the
current page in percent. Whether it reaches 100
once a page is finished, depends on the OCR engine.

Return 0 to continue progress, return 1 to cancel the
operation.

Aliased Type§

pub enum fz_pdfocr_progress_fn {
    None,
    Some(unsafe extern "C" fn(*mut fz_context, *mut c_void, i32, i32) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut fz_context, *mut c_void, i32, i32) -> i32)

Some value of type T.