pub struct PdfSaveOptions {
pub optimize: bool,
pub subset_fonts: bool,
pub secure: bool,
pub image_optimization: Option<ImageOptimizationOptions>,
}
Fields§
§optimize: bool
If set to true (default), compresses streams and prunes unreferenced PDF objects. Set to false for debugging
subset_fonts: bool
Whether to include the entire font or to subset it. Default is set to true because some CJK fonts can be massive.
secure: bool
Whether to ignore unknown operations. If set to true (default), will skip any unknown PDF operations when serializing the file.
image_optimization: Option<ImageOptimizationOptions>
Image optimization options
Trait Implementations§
Source§impl Clone for PdfSaveOptions
impl Clone for PdfSaveOptions
Source§fn clone(&self) -> PdfSaveOptions
fn clone(&self) -> PdfSaveOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PdfSaveOptions
impl Debug for PdfSaveOptions
Source§impl Default for PdfSaveOptions
impl Default for PdfSaveOptions
Source§fn default() -> PdfSaveOptions
fn default() -> PdfSaveOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PdfSaveOptions
impl<'de> Deserialize<'de> for PdfSaveOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PdfSaveOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PdfSaveOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PdfSaveOptions
impl PartialEq for PdfSaveOptions
Source§impl PartialOrd for PdfSaveOptions
impl PartialOrd for PdfSaveOptions
Source§impl Serialize for PdfSaveOptions
impl Serialize for PdfSaveOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PdfSaveOptions
Auto Trait Implementations§
impl Freeze for PdfSaveOptions
impl RefUnwindSafe for PdfSaveOptions
impl Send for PdfSaveOptions
impl Sync for PdfSaveOptions
impl Unpin for PdfSaveOptions
impl UnwindSafe for PdfSaveOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more