pub unsafe extern "C" fn pdf_has_permission(
    ctx: *mut fz_context,
    doc: *mut pdf_document,
    p: fz_permission
) -> c_int