Trait pdf::backend::Backend [−][src]
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
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]
&self,
start_offset: usize
) -> Result<(XRefTable, Dictionary)>
Used internally by File, but could also be useful for applications that want to look at the raw PDF objects.
Implementors
Loading content...