pub struct PdfDocumentWriteOptions {
pub owner_password: Option<String>,
pub user_password: Option<String>,
pub access_permissions: Option<u64>,
pub burn_in_annotations: bool,
pub save_text_from_ocr: bool,
pub save_images_as_jpeg: bool,
pub optimize_images_for_screen: bool,
}Fields§
§owner_password: Option<String>§user_password: Option<String>§access_permissions: Option<u64>§burn_in_annotations: bool§save_text_from_ocr: bool§save_images_as_jpeg: bool§optimize_images_for_screen: boolImplementations§
Source§impl PdfDocumentWriteOptions
impl PdfDocumentWriteOptions
pub fn with_owner_password(self, value: impl Into<String>) -> Self
pub fn with_user_password(self, value: impl Into<String>) -> Self
pub fn with_access_permissions(self, value: u64) -> Self
pub fn with_burn_in_annotations(self, value: bool) -> Self
pub fn with_save_text_from_ocr(self, value: bool) -> Self
pub fn with_save_images_as_jpeg(self, value: bool) -> Self
pub fn with_optimize_images_for_screen(self, value: bool) -> Self
Trait Implementations§
Source§impl Clone for PdfDocumentWriteOptions
impl Clone for PdfDocumentWriteOptions
Source§fn clone(&self) -> PdfDocumentWriteOptions
fn clone(&self) -> PdfDocumentWriteOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PdfDocumentWriteOptions
impl Debug for PdfDocumentWriteOptions
Source§impl Default for PdfDocumentWriteOptions
impl Default for PdfDocumentWriteOptions
Source§fn default() -> PdfDocumentWriteOptions
fn default() -> PdfDocumentWriteOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for PdfDocumentWriteOptions
impl PartialEq for PdfDocumentWriteOptions
Source§fn eq(&self, other: &PdfDocumentWriteOptions) -> bool
fn eq(&self, other: &PdfDocumentWriteOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PdfDocumentWriteOptions
impl Serialize for PdfDocumentWriteOptions
impl Eq for PdfDocumentWriteOptions
impl StructuralPartialEq for PdfDocumentWriteOptions
Auto Trait Implementations§
impl Freeze for PdfDocumentWriteOptions
impl RefUnwindSafe for PdfDocumentWriteOptions
impl Send for PdfDocumentWriteOptions
impl Sync for PdfDocumentWriteOptions
impl Unpin for PdfDocumentWriteOptions
impl UnsafeUnpin for PdfDocumentWriteOptions
impl UnwindSafe for PdfDocumentWriteOptions
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