[][src]Struct mupdf::document::Document

pub struct Document { /* fields omitted */ }

Implementations

impl Document[src]

pub fn open(filename: &str) -> Result<Self, Error>[src]

pub fn from_bytes(bytes: &[u8], magic: &str) -> Result<Self, Error>[src]

pub fn recognize(magic: &str) -> Result<bool, Error>[src]

pub fn needs_password(&self) -> Result<bool, Error>[src]

pub fn authenticate(&mut self, password: &str) -> Result<bool, Error>[src]

pub fn page_count(&self) -> Result<i32, Error>[src]

pub fn metadata(&self, name: MetadataName) -> Result<String, Error>[src]

pub fn is_reflowable(&self) -> Result<bool, Error>[src]

pub fn is_pdf(&self) -> bool[src]

pub fn convert_to_pdf(
    &self,
    start_page: i32,
    end_page: i32,
    rotate: u32
) -> Result<PdfDocument, Error>
[src]

pub fn layout(&mut self, width: f32, height: f32, em: f32) -> Result<(), Error>[src]

pub fn load_page(&self, page_no: i32) -> Result<Page, Error>[src]

pub fn pages(&self) -> Result<PageIter<'_>, Error>[src]

pub fn output_intent(&self) -> Result<Option<Colorspace>, Error>[src]

pub fn outlines(&self) -> Result<Vec<Outline>, Error>[src]

Trait Implementations

impl Debug for Document[src]

impl Drop for Document[src]

impl<'a> IntoIterator for &'a Document[src]

type Item = Result<Page, Error>

The type of the elements being iterated over.

type IntoIter = PageIter<'a>

Which kind of iterator are we turning this into?

impl<'a> IntoIterator for &'a mut Document[src]

type Item = Result<Page, Error>

The type of the elements being iterated over.

type IntoIter = PageIter<'a>

Which kind of iterator are we turning this into?

impl TryFrom<Document> for PdfDocument[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

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