pub struct PdfExportOptions {
pub page_size: PdfPageSize,
pub margin_pt: f32,
pub dpi: f32,
pub fit_to_page: bool,
pub compress_streams: bool,
pub title: String,
pub author: String,
}Expand description
Configuration controlling pure-Rust Vector PDF 1.7 compilation.
Fields§
§page_size: PdfPageSize§margin_pt: f32Uniform page margin in PDF points (default: 24.0 pt).
dpi: f32Logical CSS DPI reference (96.0 CSS px per inch -> 0.75 pt/px).
fit_to_page: boolAutomatically scale the viewport uniformly to fit inside the printable page box.
compress_streams: boolCompress PDF content & image streams with zlib (FlateDecode).
title: StringTrait Implementations§
Source§impl Clone for PdfExportOptions
impl Clone for PdfExportOptions
Source§impl Debug for PdfExportOptions
impl Debug for PdfExportOptions
Source§impl Default for PdfExportOptions
impl Default for PdfExportOptions
Source§impl PartialEq for PdfExportOptions
impl PartialEq for PdfExportOptions
impl StructuralPartialEq for PdfExportOptions
Auto Trait Implementations§
impl Forget for PdfExportOptions
impl Freeze for PdfExportOptions
impl Move for PdfExportOptions
impl RefUnwindSafe for PdfExportOptions
impl Send for PdfExportOptions
impl Sync for PdfExportOptions
impl Unpin for PdfExportOptions
impl UnsafeUnpin for PdfExportOptions
impl UnwindSafe for PdfExportOptions
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