pub enum PdfPagePaperStandardSize {
Show 52 variants
USLetterAnsiA,
USHalfLetter,
USGovernmentLetter,
USLegal,
USJuniorLegal,
USGovernmentLegal,
USLedgerTabloidAnsiB,
A0x4,
A0x2,
A0,
A1,
A2,
A3,
A4,
A4R,
A5,
A6,
A7,
A8,
A9,
A10,
B0,
B1,
B2,
B3,
B4,
B5,
B6,
B7,
B8,
B9,
B10,
C0,
C1,
C2,
C3,
C4,
C5,
C6,
C7,
C8,
C9,
C10,
AnsiBPlus,
AnsiC,
AnsiD,
AnsiE,
ArchA,
ArchB,
ArchC,
ArchD,
ArchE,
}Expand description
A standardized paper size.
Variants§
USLetterAnsiA
ANSI Standard Paper A size (US Letter), 216 x 279 mm / 8.5 x 11.0 in
USHalfLetter
US Half Letter size, 140 x 216 mm / 5.5 x 8.5 in
USGovernmentLetter
US Government Letter size, 203 x 254 mm / 8.0 x 10.0 in
USLegal
US Legal size, 216 x 356 mm / 8.5 x 14.0 in
USJuniorLegal
US Junior Legal size, 127 x 203 mm / 5.0 x 8.0 in
USGovernmentLegal
US Government Legal size, 216 x 330 mm / 8.5 x 13.0 in
USLedgerTabloidAnsiB
ANSI Standard Paper B size (US Ledger / Tabloid), 279 x 432 mm / 11.0 x 17.0 in
A0x4
ISO 216 4A0, quadruple the size of ISO 216 standard A0, 1682 x 2378 mm
A0x2
ISO 216 2A0, double the size of ISO 216 standard A0, 1189 x 1682 mm
A0
ISO 216 A0, 841 x 1189 mm
A1
ISO 216 A1, 594 x 841 mm
A2
ISO 216 A2, 420 x 594 mm
A3
ISO 216 A3, 297 x 420 mm
A4
ISO 216 A4, 210 x 297 mm
A4R
ISO 216 A4R, equivalent to A4 rotated 90 degrees, 297 x 210 mm
A5
ISO 216 A5, 148 x 210 mm
A6
ISO 216 A6, 105 x 148 mm
A7
ISO 216 A7, 74 x 105 mm
A8
ISO 216 A8, 52 x 74 mm
A9
ISO 216 A9, 37 x 52 mm
A10
ISO 216 A10, 26 x 37 mm
B0
ISO 216 B0, 1000 x 1414 mm
B1
ISO 216 B1, 707 x 1000 mm
B2
ISO 216 B2, 500 x 707 mm
B3
ISO 216 B3, 353 x 500 mm
B4
ISO 216 B4, 250 x 353 mm
B5
ISO 216 B5, 176 x 250 mm
B6
ISO 216 B6, 125 x 176 mm
B7
ISO 216 B7, 88 x 125 mm
B8
ISO 216 B8, 62 x 88 mm
B9
ISO 216 B9, 44 x 62 mm
B10
ISO 216 B10, 31 x 44 mm
C0
ISO 216 C0, 917 x 1297 mm
C1
ISO 216 C1, 648 x 917 mm
C2
ISO 216 C2, 458 x 648 mm
C3
ISO 216 C3, 324 x 458 mm
C4
ISO 216 C4, 229 x 324 mm
C5
ISO 216 C5, 162 x 229 mm
C6
ISO 216 C6, 114 x 162 mm
C7
ISO 216 C7, 81 x 114 mm
C8
ISO 216 C8, 57 x 81 mm
C9
ISO 216 C9, 40 x 57 mm
C10
ISO 216 C10, 28 x 40 mm
AnsiBPlus
ANSI Standard Paper B+ (Super B) size, equivalent to ANSI B with a 1 inch margin, 330 x 483 mm / 13.0 x 19.0 in
AnsiC
ANSI Standard Paper C size, 432 x 559 mm / 17.0 x 22.0 in
AnsiD
ANSI Standard Paper D size, 559 x 864 mm / 22.0 x 34.0 in
AnsiE
ANSI Standard Paper E size, 864 x 1118 mm / 34.0 x 44.0 in
ArchA
North American architectural A size, 229 x 305 mm / 9.0 x 12.0 in
ArchB
North American architectural B size, 305 x 457 mm / 12.0 x 18.0 in
ArchC
North American architectural C size, 457 x 610 mm / 18.0 x 24.0 in
ArchD
North American architectural D size, 610 x 914 mm / 24.0 x 36.0 in
ArchE
North American architectural E size, 762 x 1067 mm / 30.0 x 42.0 in
Implementations§
Source§impl PdfPagePaperStandardSize
impl PdfPagePaperStandardSize
Sourcepub fn from_mm_dimensions(
width: u32,
height: u32,
) -> Option<PdfPagePaperStandardSize>
pub fn from_mm_dimensions( width: u32, height: u32, ) -> Option<PdfPagePaperStandardSize>
Returns the PdfPagePaperStandardSize variant, if any, that exactly matches the given dimensions in millimeters.
Sourcepub fn width(&self) -> PdfPoints
pub fn width(&self) -> PdfPoints
Returns the width of this PdfPagePaperStandardSize in portrait orientation.
Sourcepub fn height(&self) -> PdfPoints
pub fn height(&self) -> PdfPoints
Returns the height of this PdfPagePaperStandardSize in portrait orientation.
Trait Implementations§
Source§impl Clone for PdfPagePaperStandardSize
impl Clone for PdfPagePaperStandardSize
Source§fn clone(&self) -> PdfPagePaperStandardSize
fn clone(&self) -> PdfPagePaperStandardSize
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PdfPagePaperStandardSize
impl Debug for PdfPagePaperStandardSize
Source§impl PartialEq for PdfPagePaperStandardSize
impl PartialEq for PdfPagePaperStandardSize
impl Copy for PdfPagePaperStandardSize
impl StructuralPartialEq for PdfPagePaperStandardSize
Auto Trait Implementations§
impl Freeze for PdfPagePaperStandardSize
impl RefUnwindSafe for PdfPagePaperStandardSize
impl Send for PdfPagePaperStandardSize
impl Sync for PdfPagePaperStandardSize
impl Unpin for PdfPagePaperStandardSize
impl UnwindSafe for PdfPagePaperStandardSize
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more