pub struct SaveOptions {
pub incremental: bool,
pub compress: bool,
pub linearize: bool,
pub garbage_collect: bool,
pub encryption: Option<EncryptionConfig>,
}Expand description
Options for saving the document.
Fields§
§incremental: boolUse incremental update (append to original file)
compress: boolCompress streams
linearize: boolLinearize for fast web view
garbage_collect: boolRemove unused objects
encryption: Option<EncryptionConfig>Encryption configuration (None = no encryption)
Implementations§
Source§impl SaveOptions
impl SaveOptions
Sourcepub fn full_rewrite() -> Self
pub fn full_rewrite() -> Self
Create options for full rewrite (default).
Sourcepub fn incremental() -> Self
pub fn incremental() -> Self
Create options for incremental update.
Sourcepub fn with_encryption(config: EncryptionConfig) -> Self
pub fn with_encryption(config: EncryptionConfig) -> Self
Create options with encryption enabled.
Uses full rewrite mode since incremental updates don’t support adding encryption to an existing PDF.
Trait Implementations§
Source§impl Clone for SaveOptions
impl Clone for SaveOptions
Source§fn clone(&self) -> SaveOptions
fn clone(&self) -> SaveOptions
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 SaveOptions
impl Debug for SaveOptions
Source§impl Default for SaveOptions
impl Default for SaveOptions
Source§fn default() -> SaveOptions
fn default() -> SaveOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SaveOptions
impl RefUnwindSafe for SaveOptions
impl Send for SaveOptions
impl Sync for SaveOptions
impl Unpin for SaveOptions
impl UnwindSafe for SaveOptions
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