[][src]Struct pdf::file::File

pub struct File<B: Backend> { /* fields omitted */ }

Methods

impl<B: Backend> File<B>[src]

pub fn new(b: B) -> File<B>[src]

pub fn open(path: &str) -> Result<File<Vec<u8>>>[src]

Opens the file at path and uses Vec as backend.

pub fn get_root(&self) -> &Catalog[src]

pub fn deref<T: Object>(&self, r: Ref<T>) -> Result<T>[src]

Important traits for PagesIterator<'a>
pub fn pages(&self) -> PagesIterator[src]

pub fn get_num_pages(&self) -> Result<i32>[src]

pub fn get_page(&self, n: i32) -> Result<&Page>[src]

Auto Trait Implementations

impl<B> Send for File<B> where
    B: Send

impl<B> Sync for File<B> where
    B: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.