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

pub struct File<B: Backend> {
    pub trailer: Trailer,
    // some fields omitted
}

Fields

trailer: Trailer

Implementations

impl File<Vec<u8>>[src]

pub fn open(path: impl AsRef<Path>) -> Result<Self>[src]

Opens the file at path and uses Vec as backend.

pub fn open_password(path: impl AsRef<Path>, password: &[u8]) -> Result<Self>[src]

Opens the file at path, with a password, and uses Vec as backend.

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

pub fn from_data_password(backend: B, password: &[u8]) -> Result<Self>[src]

pub fn from_data(backend: B) -> Result<Self>[src]

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

pub fn pages<'a>(&'a self) -> impl Iterator<Item = Result<PageRc>> + 'a[src]

pub fn num_pages(&self) -> u32[src]

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

Trait Implementations

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

Auto Trait Implementations

impl<B> !RefUnwindSafe for File<B>[src]

impl<B> !Send for File<B>[src]

impl<B> !Sync for File<B>[src]

impl<B> Unpin for File<B> where
    B: Unpin
[src]

impl<B> !UnwindSafe for File<B>[src]

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.