Function mupdf_sys::fz_run_page_contents
source · pub unsafe extern "C" fn fz_run_page_contents(
ctx: *mut fz_context,
page: *mut fz_page,
dev: *mut fz_device,
transform: fz_matrix,
cookie: *mut fz_cookie
)
Expand description
Run a page through a device. Just the main page content, without the annotations, if any.
page: Page obtained from fz_load_page.
dev: Device obtained from fz_new_*_device.
transform: Transform to apply to page. May include for example scaling and rotation, see fz_scale, fz_rotate and fz_concat. Set to fz_identity if no transformation is desired.
cookie: Communication mechanism between caller and library rendering the page. Intended for multi-threaded applications, while single-threaded applications set cookie to NULL. The caller may abort an ongoing rendering of a page. Cookie also communicates progress information back to the caller. The fields inside cookie are continually updated while the page is rendering.