[−][src]Struct mupdf::Document
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 resolve_link(&self, uri: &str) -> Result<Option<Location>, 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]
&self,
start_page: i32,
end_page: i32,
rotate: u32
) -> Result<PdfDocument, Error>
pub fn convert_to_pdf_with_cookie(
&self,
start_page: i32,
end_page: i32,
rotate: u32,
cookie: &Cookie
) -> Result<PdfDocument, Error>
[src]
&self,
start_page: i32,
end_page: i32,
rotate: u32,
cookie: &Cookie
) -> Result<PdfDocument, Error>
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?
pub fn into_iter(self) -> Self::IntoIter
[src]
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?
pub fn into_iter(self) -> Self::IntoIter
[src]
impl TryFrom<Document> for PdfDocument
[src]
Auto Trait Implementations
impl RefUnwindSafe for Document
[src]
impl !Send for Document
[src]
impl !Sync for Document
[src]
impl Unpin for Document
[src]
impl UnwindSafe for Document
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,