pub struct PdfFile {
pub version: String,
pub objects: BTreeMap<ObjectRef, PdfObject>,
pub trailer: PdfDictionary,
pub max_object_number: u32,
}Fields§
§version: String§objects: BTreeMap<ObjectRef, PdfObject>§trailer: PdfDictionary§max_object_number: u32Implementations§
Source§impl PdfFile
impl PdfFile
pub fn get_object(&self, object_ref: ObjectRef) -> PdfResult<&PdfObject>
pub fn get_object_mut( &mut self, object_ref: ObjectRef, ) -> PdfResult<&mut PdfObject>
pub fn get_value(&self, object_ref: ObjectRef) -> PdfResult<&PdfValue>
pub fn get_dictionary(&self, object_ref: ObjectRef) -> PdfResult<&PdfDictionary>
pub fn resolve<'a>(&'a self, value: &'a PdfValue) -> PdfResult<&'a PdfValue>
pub fn resolve_dict<'a>( &'a self, value: &'a PdfValue, ) -> PdfResult<&'a PdfDictionary>
pub fn allocate_object_ref(&mut self) -> ObjectRef
pub fn insert_object(&mut self, object_ref: ObjectRef, object: PdfObject)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PdfFile
impl RefUnwindSafe for PdfFile
impl Send for PdfFile
impl Sync for PdfFile
impl Unpin for PdfFile
impl UnsafeUnpin for PdfFile
impl UnwindSafe for PdfFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more