Enum PaperSize

java.lang.Object
java.lang.Enum<PaperSize>
com.ironsoftware.ironpdf.render.PaperSize
All Implemented Interfaces:
Serializable, Comparable<PaperSize>, java.lang.constant.Constable

public enum PaperSize extends Enum<PaperSize>
Defines the target virtual paper size the PDF. Relates to real-world paper-sizes.
  • Enum Constant Details

    • LETTER

      public static final PaperSize LETTER
      8.5in X 11in
    • A4

      public static final PaperSize A4
      210mm X 297mm
    • C_SHEET

      public static final PaperSize C_SHEET
      17in X 22in
    • D_SHEET

      public static final PaperSize D_SHEET
      22in X 34in
    • E_SHEET

      public static final PaperSize E_SHEET
      34in X 44in
    • LETTER_SMALL

      public static final PaperSize LETTER_SMALL
      8.5in X 11in
    • TABLOID

      public static final PaperSize TABLOID
      11in X 17in
    • LEDGER

      public static final PaperSize LEDGER
      17in X 11in
    • STATEMENT

      public static final PaperSize STATEMENT
      5.5in X 8.5in
    • EXECUTIVE

      public static final PaperSize EXECUTIVE
      7.25in X 10.5in
    • A3

      public static final PaperSize A3
      297mm X 420mm
    • A4_SMALL

      public static final PaperSize A4_SMALL
      210mm X 297mm
    • A5

      public static final PaperSize A5
      148mm X 210mm
    • B4

      public static final PaperSize B4
      250mm X 353mm
    • B5

      public static final PaperSize B5
      176mm X 250mm
    • FOLIO

      public static final PaperSize FOLIO
      8.5in X 13in
    • QUARTO

      public static final PaperSize QUARTO
      215mm X 275mm
    • STANDARD_10X14

      public static final PaperSize STANDARD_10X14
      10in X 14in
    • STANDARD_11X17

      public static final PaperSize STANDARD_11X17
      11in X 17in
    • NOTE

      public static final PaperSize NOTE
      8.5in X 11in
    • NUMBER_9_ENVELOPE

      public static final PaperSize NUMBER_9_ENVELOPE
      3.875in X 8.875in
    • NUMBER_10_ENVELOPE

      public static final PaperSize NUMBER_10_ENVELOPE
      4.125in X 9.5in
    • NUMBER_11_ENVELOPE

      public static final PaperSize NUMBER_11_ENVELOPE
      4.5in X 10.375in
    • NUMBER_12_ENVELOPE

      public static final PaperSize NUMBER_12_ENVELOPE
      4.75in X 11in
    • NUMBER_14_ENVELOPE

      public static final PaperSize NUMBER_14_ENVELOPE
      5in X 11.5in
    • DL_ENVELOPE

      public static final PaperSize DL_ENVELOPE
      110mm X 220mm
    • C5_ENVELOPE

      public static final PaperSize C5_ENVELOPE
      162mm X 229mm
    • C3_ENVELOPE

      public static final PaperSize C3_ENVELOPE
      324mm X 458mm
    • C4_ENVELOPE

      public static final PaperSize C4_ENVELOPE
      229mm X 324mm
    • C6_ENVELOPE

      public static final PaperSize C6_ENVELOPE
      114mm X 162mm
    • C65_ENVELOPE

      public static final PaperSize C65_ENVELOPE
      114mm X 229mm
    • B4_ENVELOPE

      public static final PaperSize B4_ENVELOPE
      250mm X 353mm
    • B5_ENVELOPE

      public static final PaperSize B5_ENVELOPE
      176mm X 250mm
    • B6_ENVELOPE

      public static final PaperSize B6_ENVELOPE
      176mm X 125mm
    • ITALY_ENVELOPE

      public static final PaperSize ITALY_ENVELOPE
      110mm X 230mm
    • MONARCH_ENVELOPE

      public static final PaperSize MONARCH_ENVELOPE
      3.875in X 7.5in
    • PERSONAL_ENVELOPE

      public static final PaperSize PERSONAL_ENVELOPE
      3.625in X 6.5in
    • US_STANDARD_FAN_FOLD

      public static final PaperSize US_STANDARD_FAN_FOLD
      14.875in X 11in
    • GERMAN_STANDARD_FAN_FOLD

      public static final PaperSize GERMAN_STANDARD_FAN_FOLD
      8.5in X 12in
    • ISO_B4

      public static final PaperSize ISO_B4
      250mm X 353mm
    • JAPANESE_POSTCARD

      public static final PaperSize JAPANESE_POSTCARD
      100mm X 148mm
    • STANDARD_9X11

      public static final PaperSize STANDARD_9X11
      9in X 11in
    • STANDARD_10X11

      public static final PaperSize STANDARD_10X11
      10in X 11in
    • STANDARD_15X11

      public static final PaperSize STANDARD_15X11
      15in X 11in
    • INVITE_ENVELOPE

      public static final PaperSize INVITE_ENVELOPE
      220mm X 220mm
    • LETTER_EXTRA

      public static final PaperSize LETTER_EXTRA
      9.275in X 12in
    • TABLOID_EXTRA

      public static final PaperSize TABLOID_EXTRA
      11.69in X 18in
    • A4_EXTRA

      public static final PaperSize A4_EXTRA
      236mm X 322mm
    • LETTER_TRANSVERSE

      public static final PaperSize LETTER_TRANSVERSE
      8.275in X 11in
    • A4_TRANSVERSE

      public static final PaperSize A4_TRANSVERSE
      210mm X 297mm
    • LETTER_EXTRA_TRANSVERSE

      public static final PaperSize LETTER_EXTRA_TRANSVERSE
      9.275in X 12in
    • A_PLUS

      public static final PaperSize A_PLUS
      227mm X 356mm
    • B_PLUS

      public static final PaperSize B_PLUS
      305mm X 487mm
    • LETTER_PLUS

      public static final PaperSize LETTER_PLUS
      8.5in X 12.69in
    • A4_PLUS

      public static final PaperSize A4_PLUS
      210mm X 330mm
    • A5_TRANSVERSE

      public static final PaperSize A5_TRANSVERSE
      148mm X 210mm
    • B5_TRANSVERSE

      public static final PaperSize B5_TRANSVERSE
      182mm X 257mm
    • A3_EXTRA

      public static final PaperSize A3_EXTRA
      322mm X 445mm
    • A5_EXTRA

      public static final PaperSize A5_EXTRA
      174mm X 235mm
    • B5_EXTRA

      public static final PaperSize B5_EXTRA
      201mm X 276mm
    • A2

      public static final PaperSize A2
      420mm X 594mm
    • A3_TRANSVERSE

      public static final PaperSize A3_TRANSVERSE
      297mm X 420mm
    • A3_EXTRA_TRANSVERSE

      public static final PaperSize A3_EXTRA_TRANSVERSE
      322mm X 445mm
    • JAPANESE_DOUBLE_POSTCARD

      public static final PaperSize JAPANESE_DOUBLE_POSTCARD
      200mm X 148mm
    • A6

      public static final PaperSize A6
      105mm X 148mm
    • LETTER_ROTATED

      public static final PaperSize LETTER_ROTATED
      11in X 8.5in
    • A3_ROTATED

      public static final PaperSize A3_ROTATED
      420mm X 297mm
    • A4_ROTATED

      public static final PaperSize A4_ROTATED
      297mm X 210mm
    • A5_ROTATED

      public static final PaperSize A5_ROTATED
      210mm X 148mm
    • B4_JIS_ROTATED

      public static final PaperSize B4_JIS_ROTATED
      364mm X 257mm
    • B5_JIS_ROTATED

      public static final PaperSize B5_JIS_ROTATED
      257mm X 182mm
    • JAPANESE_POST_CARD_ROTATED

      public static final PaperSize JAPANESE_POST_CARD_ROTATED
      148mm X 100mm
    • JAPANESE_DOUBLE_POSTCARD_ROTATED

      public static final PaperSize JAPANESE_DOUBLE_POSTCARD_ROTATED
      148mm X 200mm
    • A6_ROTATED

      public static final PaperSize A6_ROTATED
      148mm X 105mm
    • B6_JIS

      public static final PaperSize B6_JIS
      128mm X 182mm
    • B6_JIS_ROTATED

      public static final PaperSize B6_JIS_ROTATED
      182mm X 128mm
    • STANDARD_12X11

      public static final PaperSize STANDARD_12X11
      12in X 11in
    • PRC_16K

      public static final PaperSize PRC_16K
      146mm X 215mm
    • PRC_32K

      public static final PaperSize PRC_32K
      97mm X 151mm
    • PRC_32K_BIG

      public static final PaperSize PRC_32K_BIG
      97mm X 151mm
    • PRC_ENVELOPE_NUMBER1

      public static final PaperSize PRC_ENVELOPE_NUMBER1
      102mm X 165mm
    • PRC_ENVELOPE_NUMBER2

      public static final PaperSize PRC_ENVELOPE_NUMBER2
      102mm X 176mm
    • PRC_ENVELOP_NUMBER3

      public static final PaperSize PRC_ENVELOP_NUMBER3
      125mm X 176mm
    • PRC_ENVELOPE_NUMBER4

      public static final PaperSize PRC_ENVELOPE_NUMBER4
      110mm X 208mm
    • PRC_ENVELOPE_NUMBER5

      public static final PaperSize PRC_ENVELOPE_NUMBER5
      110mm X 220mm
    • PRC_ENVELOPE_NUMBER6

      public static final PaperSize PRC_ENVELOPE_NUMBER6
      120mm X 230mm
    • PRC_ENVELOPE_NUMBER7

      public static final PaperSize PRC_ENVELOPE_NUMBER7
      160mm X 230mm
    • PRC_ENVELOPE_NUMBER8

      public static final PaperSize PRC_ENVELOPE_NUMBER8
      120mm X 309mm
    • PRC_ENVELOPE_NUMBER9

      public static final PaperSize PRC_ENVELOPE_NUMBER9
      229mm X 324mm
    • PRC_ENVELOPE_NUMBER10

      public static final PaperSize PRC_ENVELOPE_NUMBER10
      324mm X 458mm
    • PRC16K_ROTATED

      public static final PaperSize PRC16K_ROTATED
      146mm X 215mm
    • PRC_32K_ROTATED

      public static final PaperSize PRC_32K_ROTATED
      97mm X 151mm
    • PRC_32K_BIG_ROTATED

      public static final PaperSize PRC_32K_BIG_ROTATED
      97mm X 151mm
    • PRC_ENVELOPE_NUMBER1_ROTATED

      public static final PaperSize PRC_ENVELOPE_NUMBER1_ROTATED
      165mm X 102mm
    • PRC_ENVELOPE_NUMBER2_ROTATED

      public static final PaperSize PRC_ENVELOPE_NUMBER2_ROTATED
      176mm X 102mm
    • PRC_ENVELOPE_NUMBER3_ROTATED

      public static final PaperSize PRC_ENVELOPE_NUMBER3_ROTATED
      176mm X 125mm
    • PRC_ENVELOPE_NUMBER4_ROTATED

      public static final PaperSize PRC_ENVELOPE_NUMBER4_ROTATED
      208mm X 110mm
    • PRC_ENVELOPE_NUMBER5_ROTATED

      public static final PaperSize PRC_ENVELOPE_NUMBER5_ROTATED
      220mm X 110mm
    • PRC_ENVELOPE_NUMBER6_ROTATED

      public static final PaperSize PRC_ENVELOPE_NUMBER6_ROTATED
      230mm X 120mm
    • PRC_ENVELOPE_NUMBER7_ROTATED

      public static final PaperSize PRC_ENVELOPE_NUMBER7_ROTATED
      230mm X 160mm
    • PRC_ENVELOPE_NUMBER8_ROTATED

      public static final PaperSize PRC_ENVELOPE_NUMBER8_ROTATED
      309mm X 120mm
    • PRC_ENVELOPE_NUMBER9_ROTATED

      public static final PaperSize PRC_ENVELOPE_NUMBER9_ROTATED
      324mm X 229mm
    • PRC_ENVELOPE_NUMBER10_ROTATED

      public static final PaperSize PRC_ENVELOPE_NUMBER10_ROTATED
      458mm X 324mm
    • Custom

      public static final PaperSize Custom
      Set using SetCustomPaperSizeInInches or SetCustomPaperSizeInMillimeters
  • Method Details

    • values

      public static PaperSize[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PaperSize valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null