#[repr(C)]pub struct PdfOptions {Show 14 fields
pub page_width_mm: f64,
pub page_height_mm: f64,
pub margin_top_mm: f64,
pub margin_right_mm: f64,
pub margin_bottom_mm: f64,
pub margin_left_mm: f64,
pub print_background: bool,
pub landscape: bool,
pub scale: f64,
pub prefer_css_page_size: bool,
pub header_template: String,
pub footer_template: String,
pub page_ranges: String,
pub metadata: PdfMetadata,
}Expand description
PDF generation options
Fields§
§page_width_mm: f64Page width in millimeters
page_height_mm: f64Page height in millimeters
margin_top_mm: f64Top margin in millimeters
margin_right_mm: f64Right margin in millimeters
margin_bottom_mm: f64Bottom margin in millimeters
margin_left_mm: f64Left margin in millimeters
print_background: boolPrint background colors and images
landscape: boolUse landscape orientation
scale: f64Scale factor (0.1 to 2.0)
prefer_css_page_size: boolPrefer CSS @page size
header_template: StringHeader HTML template
Footer HTML template
page_ranges: StringPage ranges (e.g., “1-5,8”)
metadata: PdfMetadataPDF document metadata
Trait Implementations§
Source§impl Clone for PdfOptions
impl Clone for PdfOptions
Source§impl Debug for PdfOptions
impl Debug for PdfOptions
Source§impl Default for PdfOptions
impl Default for PdfOptions
Source§impl ExternType for PdfOptions
impl ExternType for PdfOptions
Auto Trait Implementations§
impl Freeze for PdfOptions
impl RefUnwindSafe for PdfOptions
impl Send for PdfOptions
impl Sync for PdfOptions
impl Unpin for PdfOptions
impl UnwindSafe for PdfOptions
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