Struct mupdf_sys::pdf_document

source ·
#[repr(C)]
pub struct pdf_document {
Show 64 fields pub super_: fz_document, pub file: *mut fz_stream, pub version: c_int, pub startxref: i64, pub file_size: i64, pub crypt: *mut pdf_crypt, pub ocg: *mut pdf_ocg_descriptor, pub oi: *mut fz_colorspace, pub max_xref_len: c_int, pub num_xref_sections: c_int, pub saved_num_xref_sections: c_int, pub num_incremental_sections: c_int, pub xref_base: c_int, pub disallow_new_increments: c_int, pub local_xref: *mut pdf_xref, pub local_xref_nesting: c_int, pub xref_sections: *mut pdf_xref, pub saved_xref_sections: *mut pdf_xref, pub xref_index: *mut c_int, pub save_in_progress: c_int, pub has_xref_streams: c_int, pub has_old_style_xrefs: c_int, pub has_linearization_object: c_int, pub page_map_nesting: c_int, pub map_page_count: c_int, pub rev_page_map: *mut pdf_rev_page_map, pub fwd_page_map: *mut c_int, pub repair_attempted: c_int, pub repair_in_progress: c_int, pub file_reading_linearly: c_int, pub file_length: i64, pub linear_page_count: c_int, pub linear_obj: *mut pdf_obj, pub linear_page_refs: *mut *mut pdf_obj, pub linear_page1_obj_num: c_int, pub linear_pos: i64, pub linear_page_num: c_int, pub hint_object_offset: c_int, pub hint_object_length: c_int, pub hints_loaded: c_int, pub hint_page: *mut pdf_hint_page, pub hint_shared_ref: *mut c_int, pub hint_shared: *mut pdf_hint_shared, pub hint_obj_offsets_max: c_int, pub hint_obj_offsets: *mut i64, pub resources_localised: c_int, pub lexbuf: pdf_lexbuf_large, pub js: *mut pdf_js, pub recalculate: c_int, pub redacted: c_int, pub resynth_required: c_int, pub event_cb: pdf_doc_event_cb, pub free_event_data_cb: pdf_free_doc_event_data_cb, pub event_cb_data: *mut c_void, pub num_type3_fonts: c_int, pub max_type3_fonts: c_int, pub type3_fonts: *mut *mut fz_font, pub type3_lock: c_int, pub resources: pdf_document__bindgen_ty_1, pub orphans_max: c_int, pub orphans_count: c_int, pub orphans: *mut *mut pdf_obj, pub xfa: *mut fz_xml_doc, pub journal: *mut pdf_journal,
}

Fields§

§super_: fz_document§file: *mut fz_stream§version: c_int§startxref: i64§file_size: i64§crypt: *mut pdf_crypt§ocg: *mut pdf_ocg_descriptor§oi: *mut fz_colorspace§max_xref_len: c_int§num_xref_sections: c_int§saved_num_xref_sections: c_int§num_incremental_sections: c_int§xref_base: c_int§disallow_new_increments: c_int§local_xref: *mut pdf_xref§local_xref_nesting: c_int§xref_sections: *mut pdf_xref§saved_xref_sections: *mut pdf_xref§xref_index: *mut c_int§save_in_progress: c_int§has_xref_streams: c_int§has_old_style_xrefs: c_int§has_linearization_object: c_int§page_map_nesting: c_int§map_page_count: c_int§rev_page_map: *mut pdf_rev_page_map§fwd_page_map: *mut c_int§repair_attempted: c_int§repair_in_progress: c_int§file_reading_linearly: c_int§file_length: i64§linear_page_count: c_int§linear_obj: *mut pdf_obj§linear_page_refs: *mut *mut pdf_obj§linear_page1_obj_num: c_int§linear_pos: i64§linear_page_num: c_int§hint_object_offset: c_int§hint_object_length: c_int§hints_loaded: c_int§hint_page: *mut pdf_hint_page§hint_shared_ref: *mut c_int§hint_shared: *mut pdf_hint_shared§hint_obj_offsets_max: c_int§hint_obj_offsets: *mut i64§resources_localised: c_int§lexbuf: pdf_lexbuf_large§js: *mut pdf_js§recalculate: c_int§redacted: c_int§resynth_required: c_int§event_cb: pdf_doc_event_cb§free_event_data_cb: pdf_free_doc_event_data_cb§event_cb_data: *mut c_void§num_type3_fonts: c_int§max_type3_fonts: c_int§type3_fonts: *mut *mut fz_font§type3_lock: c_int§resources: pdf_document__bindgen_ty_1§orphans_max: c_int§orphans_count: c_int§orphans: *mut *mut pdf_obj§xfa: *mut fz_xml_doc§journal: *mut pdf_journal

Trait Implementations§

source§

impl Clone for pdf_document

source§

fn clone(&self) -> pdf_document

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for pdf_document

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for pdf_document

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.