Function mupdf_sys::fz_process_opened_pages
source · pub unsafe extern "C" fn fz_process_opened_pages(
ctx: *mut fz_context,
doc: *mut fz_document,
process_openend_page: fz_process_opened_page_fn,
state: *mut c_void
) -> *mut c_void
Expand description
Iterates over all opened pages of the document, calling the provided callback for each page for processing. If the callback returns non-NULL then the iteration stops and that value is returned to the called of fz_process_opened_pages().
The state pointer provided to fz_process_opened_pages() is passed on to the callback but is owned by the caller.
Returns the first non-NULL value returned by the callback, or NULL if the callback returned NULL for all opened pages.