Struct mupdf::pdf::document::PdfWriteOptions

source ·
pub struct PdfWriteOptions { /* private fields */ }

Implementations§

source§

impl PdfWriteOptions

source

pub fn incremental(&self) -> bool

source

pub fn set_incremental(&mut self, value: bool) -> &mut Self

source

pub fn pretty(&self) -> bool

source

pub fn set_pretty(&mut self, value: bool) -> &mut Self

source

pub fn ascii(&self) -> bool

source

pub fn set_ascii(&mut self, value: bool) -> &mut Self

source

pub fn compress(&self) -> bool

source

pub fn set_compress(&mut self, value: bool) -> &mut Self

source

pub fn compress_images(&self) -> bool

source

pub fn set_compress_images(&mut self, value: bool) -> &mut Self

source

pub fn compress_fonts(&self) -> bool

source

pub fn set_compress_fonts(&mut self, value: bool) -> &mut Self

source

pub fn decompress(&self) -> bool

source

pub fn set_decompress(&mut self, value: bool) -> &mut Self

source

pub fn garbage(&self) -> bool

source

pub fn set_garbage(&mut self, value: bool) -> &mut Self

source

pub fn garbage_level(&self) -> i32

source

pub fn set_garbage_level(&mut self, value: i32) -> &mut Self

source

pub fn linear(self) -> bool

source

pub fn set_linear(&mut self, value: bool) -> &mut Self

source

pub fn clean(&self) -> bool

source

pub fn set_clean(&mut self, value: bool) -> &mut Self

source

pub fn sanitize(&self) -> bool

source

pub fn set_sanitize(&mut self, value: bool) -> &mut Self

source

pub fn appearance(&self) -> bool

source

pub fn set_appearance(&mut self, value: bool) -> &mut Self

source

pub fn encryption(&self) -> Encryption

source

pub fn set_encryption(&mut self, value: Encryption) -> &mut Self

source

pub fn permissions(&self) -> Permission

source

pub fn set_permissions(&mut self, value: Permission) -> &mut Self

source

pub fn owner_password(&self) -> &str

source

pub fn set_owner_password(&mut self, pwd: &str) -> &mut Self

source

pub fn user_password(&self) -> &str

source

pub fn set_user_password(&mut self, pwd: &str) -> &mut Self

Trait Implementations§

source§

impl Clone for PdfWriteOptions

source§

fn clone(&self) -> PdfWriteOptions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for PdfWriteOptions

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for PdfWriteOptions

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.