pub enum PdfPageSize {
A4,
Letter,
Custom {
width_pt: f32,
height_pt: f32,
},
}Expand description
Standard print page geometry in PDF points (72 pt = 1 inch).
Variants§
A4
ISO 216 A4 (595.28 x 841.89 pt = 210 x 297 mm).
Letter
US Letter (612.0 x 792.0 pt = 8.5 x 11 in).
Custom
Explicit page dimensions in PDF points (72 pt/in).
Implementations§
Source§impl PdfPageSize
impl PdfPageSize
pub const fn dimensions_pt(self) -> (f32, f32)
Trait Implementations§
Source§impl Clone for PdfPageSize
impl Clone for PdfPageSize
impl Copy for PdfPageSize
Source§impl Debug for PdfPageSize
impl Debug for PdfPageSize
Source§impl PartialEq for PdfPageSize
impl PartialEq for PdfPageSize
impl StructuralPartialEq for PdfPageSize
Auto Trait Implementations§
impl Forget for PdfPageSize
impl Freeze for PdfPageSize
impl Move for PdfPageSize
impl RefUnwindSafe for PdfPageSize
impl Send for PdfPageSize
impl Sync for PdfPageSize
impl Unpin for PdfPageSize
impl UnsafeUnpin for PdfPageSize
impl UnwindSafe for PdfPageSize
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