Class PageSize

java.lang.Object
com.itextpdf.kernel.geom.Rectangle
com.itextpdf.kernel.geom.PageSize
All Implemented Interfaces:
Cloneable

public class PageSize extends Rectangle implements Cloneable
  • Field Details

  • Constructor Details

    • PageSize

      public PageSize (float width, float height)
    • PageSize

      public PageSize (Rectangle box)
  • Method Details

    • rotate

      public PageSize rotate()
      Rotates PageSize clockwise.
      Returns:
      the rotated PageSize.
    • clone

      public Rectangle clone()
      Creates a "deep copy" of this PageSize, meaning the object returned by this method will be independent of the object being cloned. Note that although the return type of this method is Rectangle, the actual type of the returned object is PageSize.
      Overrides:
      clone in class Rectangle
      Returns:
      the copied PageSize.