Enum Class PageSize

java.lang.Object
java.lang.Enum<PageSize>
io.scanbot.sdk.pdfgeneration.PageSize
All Implemented Interfaces:
Serializable, Comparable<PageSize>, Constable

public enum PageSize extends Enum<PageSize>
Page size.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    297 x 420 (mm) 841.89 x 1199.551 (pixels) at 72 DPI.
    210 x 297 (mm) 595.276 x 841.89 (pixels) at 72 DPI.
    148 x 210 (mm) 419.528 x 595.276 (pixels) at 72 DPI.
    250 x 353 (mm) 708.661 x 1000.63 (pixels) at 72 DPI.
    176 x 250 (mm) 498.898 x 708.661 (pixels) at 72 DPI.
    4.125 x 9.5 (inches) 297 x 684 (pixels) at 72 DPI.
    Physical size will be calculated from the image dimensions and the `dpi` parameter.
    7.25 x 10.5 (inches) 522 x 756 (pixels) at 72 DPI.
    8.5 x 14 (inches) 612 x 1008 (pixels) at 72 DPI.
    8.5 x 11 (inches) 612 x 792 (pixels) at 72 DPI.
    4 x 6 (inches) 288 x 432 (pixels) at 72 DPI.
    4 x 8 (inches) 288 x 576 (pixels) at 72 DPI.
    5 x 7 (inches) 360 x 504 (pixels) at 72 DPI.
  • Method Summary

    Modifier and Type
    Method
    Description
    static PageSize
    Returns the enum constant of this class with the specified name.
    static PageSize[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

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

    • LETTER

      public static final PageSize LETTER
      8.5 x 11 (inches) 612 x 792 (pixels) at 72 DPI.
    • A3

      public static final PageSize A3
      297 x 420 (mm) 841.89 x 1199.551 (pixels) at 72 DPI.
    • A4

      public static final PageSize A4
      210 x 297 (mm) 595.276 x 841.89 (pixels) at 72 DPI.
    • A5

      public static final PageSize A5
      148 x 210 (mm) 419.528 x 595.276 (pixels) at 72 DPI.
    • B4

      public static final PageSize B4
      250 x 353 (mm) 708.661 x 1000.63 (pixels) at 72 DPI.
    • B5

      public static final PageSize B5
      176 x 250 (mm) 498.898 x 708.661 (pixels) at 72 DPI.
    • EXECUTIVE

      public static final PageSize EXECUTIVE
      7.25 x 10.5 (inches) 522 x 756 (pixels) at 72 DPI.
    • US4x6

      public static final PageSize US4x6
      4 x 6 (inches) 288 x 432 (pixels) at 72 DPI.
    • US4x8

      public static final PageSize US4x8
      4 x 8 (inches) 288 x 576 (pixels) at 72 DPI.
    • US5x7

      public static final PageSize US5x7
      5 x 7 (inches) 360 x 504 (pixels) at 72 DPI.
    • COMM10

      public static final PageSize COMM10
      4.125 x 9.5 (inches) 297 x 684 (pixels) at 72 DPI.
    • CUSTOM

      public static final PageSize CUSTOM
      Physical size will be calculated from the image dimensions and the `dpi` parameter.
  • Method Details

    • values

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

      public static PageSize valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null