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

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

Required methods

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

fn len(&self) -> usize[src]

Loading content...

Provided methods

fn is_empty(&self) -> bool[src]

fn locate_start_offset(&self) -> Result<usize>[src]

Returns the offset of the beginning of the file, i.e., where the %PDF-1.5 header is. (currently only used internally!)

fn locate_xref_offset(&self) -> Result<usize>[src]

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

fn read_xref_table_and_trailer(
    &self,
    start_offset: usize
) -> Result<(XRefTable, Dictionary)>
[src]

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...