pub struct SaveOptionsBuilder(/* private fields */);Expand description
Builds a SaveOptions one setting at a time.
Every setting starts at its SaveOptions::default value, so only the
ones a caller cares about need naming.
Implementations§
Source§impl SaveOptionsBuilder
impl SaveOptionsBuilder
Sourcepub fn keep_original(self, keep: bool) -> Self
pub fn keep_original(self, keep: bool) -> Self
Keep the original bytes as the file’s prefix.
Sourcepub fn remove_security(self, remove: bool) -> Self
pub fn remove_security(self, remove: bool) -> Self
Drop the security handler, writing the document in the clear.
Sourcepub fn subset_new_fonts(self, subset: bool) -> Self
pub fn subset_new_fonts(self, subset: bool) -> Self
Subset newly embedded fonts.
Sourcepub fn version(self, version: PdfVersion) -> Self
pub fn version(self, version: PdfVersion) -> Self
The version to declare in the header.
Sourcepub fn encrypt(self, encryption: Encryption) -> Self
pub fn encrypt(self, encryption: Encryption) -> Self
Encrypt an unencrypted document on the way out.
Sourcepub fn build(self) -> SaveOptions
pub fn build(self) -> SaveOptions
The options built so far.
Trait Implementations§
Source§impl Clone for SaveOptionsBuilder
impl Clone for SaveOptionsBuilder
Auto Trait Implementations§
impl Freeze for SaveOptionsBuilder
impl RefUnwindSafe for SaveOptionsBuilder
impl Send for SaveOptionsBuilder
impl Sync for SaveOptionsBuilder
impl Unpin for SaveOptionsBuilder
impl UnsafeUnpin for SaveOptionsBuilder
impl UnwindSafe for SaveOptionsBuilder
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<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.