pub struct XRefTable { /* private fields */ }Expand description
Cross-reference table
Implementations§
Source§impl XRefTable
impl XRefTable
Sourcepub fn parse<R: Read + Seek>(reader: &mut BufReader<R>) -> ParseResult<Self>
pub fn parse<R: Read + Seek>(reader: &mut BufReader<R>) -> ParseResult<Self>
Parse xref table from a reader with fallback recovery
Sourcepub fn parse_with_options<R: Read + Seek>(
reader: &mut BufReader<R>,
options: &ParseOptions,
) -> ParseResult<Self>
pub fn parse_with_options<R: Read + Seek>( reader: &mut BufReader<R>, options: &ParseOptions, ) -> ParseResult<Self>
Parse xref table from a reader with custom options
Sourcepub fn get_entry_mut(&mut self, obj_num: u32) -> Option<&mut XRefEntry>
pub fn get_entry_mut(&mut self, obj_num: u32) -> Option<&mut XRefEntry>
Get a mutable xref entry by object number
Sourcepub fn trailer(&self) -> Option<&PdfDictionary>
pub fn trailer(&self) -> Option<&PdfDictionary>
Get the trailer dictionary
Sourcepub fn xref_offset(&self) -> u64
pub fn xref_offset(&self) -> u64
Get the xref offset
Sourcepub fn get_extended_entry(&self, obj_num: u32) -> Option<&XRefEntryExt>
pub fn get_extended_entry(&self, obj_num: u32) -> Option<&XRefEntryExt>
Get extended entry information (for compressed objects)
Sourcepub fn is_compressed(&self, obj_num: u32) -> bool
pub fn is_compressed(&self, obj_num: u32) -> bool
Check if an object is compressed
Sourcepub fn set_trailer(&mut self, trailer: PdfDictionary)
pub fn set_trailer(&mut self, trailer: PdfDictionary)
Set the trailer dictionary
Sourcepub fn add_extended_entry(&mut self, obj_num: u32, entry: XRefEntryExt)
pub fn add_extended_entry(&mut self, obj_num: u32, entry: XRefEntryExt)
Add an extended entry to the xref table
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XRefTable
impl RefUnwindSafe for XRefTable
impl Send for XRefTable
impl Sync for XRefTable
impl Unpin for XRefTable
impl UnwindSafe for XRefTable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().