PdfPagePaperStandardSize

Enum PdfPagePaperStandardSize 

Source
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

Source

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.

Source

pub fn width(&self) -> PdfPoints

Returns the width of this PdfPagePaperStandardSize in portrait orientation.

Source

pub fn height(&self) -> PdfPoints

Returns the height of this PdfPagePaperStandardSize in portrait orientation.

Trait Implementations§

Source§

impl Clone for PdfPagePaperStandardSize

Source§

fn clone(&self) -> PdfPagePaperStandardSize

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PdfPagePaperStandardSize

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for PdfPagePaperStandardSize

Source§

fn eq(&self, other: &PdfPagePaperStandardSize) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for PdfPagePaperStandardSize

Source§

impl StructuralPartialEq for PdfPagePaperStandardSize

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.