Enum Size.PaperSizes

java.lang.Object
java.lang.Enum<Size.PaperSizes>
com.pdftools.geometry.units.Size.PaperSizes
All Implemented Interfaces:
Serializable, Comparable<Size.PaperSizes>
Enclosing class:
Size

public static enum Size.PaperSizes extends Enum<Size.PaperSizes>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Paper size with dimensions 0.297m x 0.420m, which is part of the A series format paper size defined by the ISO 216 standard.
    Paper size with dimensions 0.210m x 0.297, which is part of the A series format paper size defined by the ISO 216 standard.
    Paper size with dimensions 0.148m x 0.210m, which is part of the A series format paper size defined by the ISO 216 standard.
    Paper size with dimensions 8.5in x 14in, which is mainly used in North America.
    Paper size with dimensions 8.5in x 11in, which is mainly used in North America.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String name)
    Get the paper size enum value from its name, e.g.
    Get the paper size's name.
     
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • A3

      public static final Size.PaperSizes A3
      Paper size with dimensions 0.297m x 0.420m, which is part of the A series format paper size defined by the ISO 216 standard.
    • A4

      public static final Size.PaperSizes A4
      Paper size with dimensions 0.210m x 0.297, which is part of the A series format paper size defined by the ISO 216 standard.
    • A5

      public static final Size.PaperSizes A5
      Paper size with dimensions 0.148m x 0.210m, which is part of the A series format paper size defined by the ISO 216 standard.
    • LETTER

      public static final Size.PaperSizes LETTER
      Paper size with dimensions 8.5in x 11in, which is mainly used in North America.
  • Method Details

    • values

      public static Size.PaperSizes[] 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 Size.PaperSizes 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
    • getName

      public String getName()
      Get the paper size's name.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Size.PaperSizes>
    • get

      public static Size.PaperSizes get(String name)
      Get the paper size enum value from its name, e.g. A4, or Letter.
      Parameters:
      name - the name, e.g. A4, or Letter.
      Returns: