Enum PageSize

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable

    
    public enum PageSize
    extends Enum<PageSize>
                        

    Represents the page size of the PDF file (A4, A5, LETTER, etc.).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Integer index
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      LETTER

      Represents Letter size of the page (8.5 x 11 inches) - 612 x 792 pixels

      LEGAL

      Represents Legal size of the page (8.5 x 14 inches) - 612 x 1008 pixels

      A3

      Represents A3 size of the page (297 x 420 mm) - 841.89 x 1199.551 pixels

      A4

      Represents A4 size of the page (210 x 297 mm) - 595.276 x 841.89 pixels

      A5

      Represents A5 size of the page (148 x 210 mm) - 419.528 x 595.276 pixels

      B4

      Represents B4 size of the page (250 x 353 mm) - 708.661 x 1000.63 pixels

      B5

      Represents B5 size of the page (176 x 250 mm) - 498.898 x 708.661 pixels

      EXECUTIVE

      Represents Executive size of the page (7.25 x 10.5 inches) - 522 x 756 pixels

      US4x6

      Represents US4x6 size of the page (4 x 6 inches) - 288 x 432 pixels

      US4x8

      Represents US4x8 size of the page (4 x 8 inches) - 288 x 576 pixels

      US5x7

      Represents US5x7 size of the page (5 x 7 inches) - 360 x 504 pixels

      COMM10

      Represents COMM10 size of the page (4.125 x 9.5 inches) - 297 x 684 pixels

      CUSTOM

      Represents CUSTOM size of the page (uses image size)

    • Method Summary

      Modifier and Type Method Description
      final PageSize valueOf(String value) Returns the enum constant of this type with the specified name.
      final Array<PageSize> values() Returns an array containing the constants of this enum type, in the order they're declared.
      final Integer getIndex()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • valueOf

         final PageSize valueOf(String value)

        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.)

      • values

         final Array<PageSize> values()

        Returns an array containing the constants of this enum type, in the order they're declared.

        This method may be used to iterate over the constants.