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,
}Expand description
Builder-style options for the corresponding PDFDocumentWrite API.
Fields§
§owner_password: Option<String>Mirrors the corresponding PDFDocument field.
user_password: Option<String>Mirrors the corresponding PDFDocument field.
access_permissions: Option<u64>Mirrors the corresponding PDFDocument field.
burn_in_annotations: boolMirrors the corresponding PDFDocument field.
save_text_from_ocr: boolMirrors the corresponding PDFDocument field.
save_images_as_jpeg: boolMirrors the corresponding PDFDocument field.
optimize_images_for_screen: boolMirrors the corresponding PDFDocument field.
Implementations§
Source§impl PdfDocumentWriteOptions
impl PdfDocumentWriteOptions
Sourcepub fn with_owner_password(self, value: impl Into<String>) -> Self
pub fn with_owner_password(self, value: impl Into<String>) -> Self
Sets the corresponding PDFDocumentWrite option and returns the builder.
Sourcepub fn with_user_password(self, value: impl Into<String>) -> Self
pub fn with_user_password(self, value: impl Into<String>) -> Self
Sets the corresponding PDFDocumentWrite option and returns the builder.
Sourcepub fn with_access_permissions(self, value: u64) -> Self
pub fn with_access_permissions(self, value: u64) -> Self
Sets the corresponding PDFDocumentWrite option and returns the builder.
Sourcepub fn with_burn_in_annotations(self, value: bool) -> Self
pub fn with_burn_in_annotations(self, value: bool) -> Self
Sets the corresponding PDFDocumentWrite option and returns the builder.
Sourcepub fn with_save_text_from_ocr(self, value: bool) -> Self
pub fn with_save_text_from_ocr(self, value: bool) -> Self
Sets the corresponding PDFDocumentWrite option and returns the builder.
Sourcepub fn with_save_images_as_jpeg(self, value: bool) -> Self
pub fn with_save_images_as_jpeg(self, value: bool) -> Self
Sets the corresponding PDFDocumentWrite option and returns the builder.
Sourcepub fn with_optimize_images_for_screen(self, value: bool) -> Self
pub fn with_optimize_images_for_screen(self, value: bool) -> Self
Sets the corresponding PDFDocumentWrite option and returns the builder.
Trait Implementations§
Source§impl Clone for PdfDocumentWriteOptions
impl Clone for PdfDocumentWriteOptions
Source§fn clone(&self) -> PdfDocumentWriteOptions
fn clone(&self) -> PdfDocumentWriteOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
Source§impl PartialEq for PdfDocumentWriteOptions
impl PartialEq for PdfDocumentWriteOptions
Source§fn eq(&self, other: &PdfDocumentWriteOptions) -> bool
fn eq(&self, other: &PdfDocumentWriteOptions) -> bool
self and other values to be equal, and is used by ==.