pub struct Document { /* private fields */ }
Implementations§
source§impl Document
impl Document
pub fn open(filename: &str) -> Result<Self, Error>
pub fn from_bytes(bytes: &[u8], magic: &str) -> Result<Self, Error>
pub fn recognize(magic: &str) -> Result<bool, Error>
pub fn needs_password(&self) -> Result<bool, Error>
pub fn authenticate(&mut self, password: &str) -> Result<bool, Error>
pub fn page_count(&self) -> Result<i32, Error>
pub fn metadata(&self, name: MetadataName) -> Result<String, Error>
pub fn resolve_link(&self, uri: &str) -> Result<Option<Location>, Error>
pub fn is_reflowable(&self) -> Result<bool, Error>
pub fn is_pdf(&self) -> bool
pub fn convert_to_pdf( &self, start_page: i32, end_page: i32, rotate: u32 ) -> Result<PdfDocument, Error>
pub fn layout(&mut self, width: f32, height: f32, em: f32) -> Result<(), Error>
pub fn load_page(&self, page_no: i32) -> Result<Page, Error>
pub fn pages(&self) -> Result<PageIter<'_>, Error>
pub fn output_intent(&self) -> Result<Option<Colorspace>, Error>
pub fn outlines(&self) -> Result<Vec<Outline>, Error>
Trait Implementations§
source§impl<'a> IntoIterator for &'a Document
impl<'a> IntoIterator for &'a Document
source§impl<'a> IntoIterator for &'a mut Document
impl<'a> IntoIterator for &'a mut Document
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl !Send for Document
impl !Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more