[][src]Trait pdf::backend::Backend

pub trait Backend: Sized {
    fn read<T: IndexRange>(&self, range: T) -> Result<&[u8]>;
fn len(&self) -> usize; fn locate_xref_offset(&self) -> Result<usize> { ... }
fn read_xref_table_and_trailer(&self) -> Result<(XRefTable, Dictionary)> { ... } }

Required methods

fn read<T: IndexRange>(&self, range: T) -> Result<&[u8]>

fn len(&self) -> usize

Loading content...

Provided methods

fn locate_xref_offset(&self) -> Result<usize>

Returns the value of startxref (currently only used internally!)

fn read_xref_table_and_trailer(&self) -> Result<(XRefTable, Dictionary)>

Used internally by File, but could also be useful for applications that want to look at the raw PDF objects.

Loading content...

Implementors

impl<T> Backend for T where
    T: Deref<Target = [u8]>, 
[src]

Loading content...