iText 8.0.4 API
iText.Kernel.Geom.PageSize Class Reference
Inheritance diagram for iText.Kernel.Geom.PageSize:
iText.Kernel.Geom.Rectangle

Public Member Functions

  PageSize (float width, float height)
 
  PageSize (Rectangle box)
 
virtual iText.Kernel.Geom.PageSize  Rotate ()
  Rotates PageSize clockwise. More...
 
override Rectangle  Clone ()
  Creates a "deep copy" of this PageSize, meaning the object returned by this method will be independent of the object being cloned. More...
 
- Public Member Functions inherited from iText.Kernel.Geom.Rectangle
  Rectangle (float x, float y, float width, float height)
  Creates new instance. More...
 
  Rectangle (float width, float height)
  Creates new instance of rectangle with (0, 0) as the lower left point. More...
 
  Rectangle (iText.Kernel.Geom.Rectangle rect)
  Creates the copy of given Rectangle More...
 
virtual Point[]  ToPointsArray ()
  Convert rectangle to an array of points More...
 
virtual iText.Kernel.Geom.Rectangle  GetIntersection (iText.Kernel.Geom.Rectangle rect)
  Get the rectangle representation of the intersection between this rectangle and the passed rectangle More...
 
virtual bool  Contains (iText.Kernel.Geom.Rectangle rect)
  Check if this rectangle contains the passed rectangle. More...
 
virtual bool  Overlaps (iText.Kernel.Geom.Rectangle rect)
  Check if this rectangle and the passed rectangle overlap More...
 
virtual bool  Overlaps (iText.Kernel.Geom.Rectangle rect, float epsilon)
  Check if this rectangle and the passed rectangle overlap More...
 
virtual iText.Kernel.Geom.Rectangle  SetBbox (float llx, float lly, float urx, float ury)
  Sets the rectangle by the coordinates, specifying its lower left and upper right points. More...
 
virtual float  GetX ()
  Gets the X coordinate of lower left point. More...
 
virtual iText.Kernel.Geom.Rectangle  SetX (float x)
  Sets the X coordinate of lower left point. More...
 
virtual float  GetY ()
  Gets the Y coordinate of lower left point. More...
 
virtual iText.Kernel.Geom.Rectangle  SetY (float y)
  Sets the Y coordinate of lower left point. More...
 
virtual float  GetWidth ()
  Gets the width of rectangle. More...
 
virtual iText.Kernel.Geom.Rectangle  SetWidth (float width)
  Sets the width of rectangle. More...
 
virtual float  GetHeight ()
  Gets the height of rectangle. More...
 
virtual iText.Kernel.Geom.Rectangle  SetHeight (float height)
  Sets the height of rectangle. More...
 
virtual iText.Kernel.Geom.Rectangle  IncreaseHeight (float extra)
  Increases the height of rectangle by the given value. More...
 
virtual iText.Kernel.Geom.Rectangle  DecreaseHeight (float extra)
  Decreases the height of rectangle by the given value. More...
 
virtual iText.Kernel.Geom.Rectangle  IncreaseWidth (float extra)
  Increases the width of rectangle by the given value. More...
 
virtual iText.Kernel.Geom.Rectangle  DecreaseWidth (float extra)
  Decreases the width of rectangle by the given value. More...
 
virtual float  GetLeft ()
  Gets the X coordinate of the left edge of the rectangle. More...
 
virtual float  GetRight ()
  Gets the X coordinate of the right edge of the rectangle. More...
 
virtual float  GetTop ()
  Gets the Y coordinate of the upper edge of the rectangle. More...
 
virtual float  GetBottom ()
  Gets the Y coordinate of the lower edge of the rectangle. More...
 
virtual iText.Kernel.Geom.Rectangle  MoveDown (float move)
  Decreases the y coordinate. More...
 
virtual iText.Kernel.Geom.Rectangle  MoveUp (float move)
  Increases the y coordinate. More...
 
virtual iText.Kernel.Geom.Rectangle  MoveRight (float move)
  Increases the x coordinate. More...
 
virtual iText.Kernel.Geom.Rectangle  MoveLeft (float move)
  Decreases the x coordinate. More...
 
virtual iText.Kernel.Geom.Rectangle  ApplyMargins (float topIndent, float rightIndent, float bottomIndent, float leftIndent, bool reverse)
  Change the rectangle according the specified margins. More...
 
virtual bool  IntersectsLine (float x1, float y1, float x2, float y2)
  Checks if rectangle have common points with line, specified by two points. More...
 
override String  ToString ()
  Gets the string representation of rectangle. More...
 
virtual bool  EqualsWithEpsilon (iText.Kernel.Geom.Rectangle that)
  Compares instance of this rectangle with given deviation equals to 0.0001 More...
 
virtual bool  EqualsWithEpsilon (iText.Kernel.Geom.Rectangle that, float eps)
  Compares instance of this rectangle with given deviation. More...
 

Static Public Attributes

static readonly iText.Kernel.Geom.PageSize  A0 = new iText.Kernel.Geom.PageSize(2384, 3370)
 
static readonly iText.Kernel.Geom.PageSize  A1 = new iText.Kernel.Geom.PageSize(1684, 2384)
 
static readonly iText.Kernel.Geom.PageSize  A2 = new iText.Kernel.Geom.PageSize(1190, 1684)
 
static readonly iText.Kernel.Geom.PageSize  A3 = new iText.Kernel.Geom.PageSize(842, 1190)
 
static readonly iText.Kernel.Geom.PageSize  A4 = new iText.Kernel.Geom.PageSize(595, 842)
 
static readonly iText.Kernel.Geom.PageSize  A5 = new iText.Kernel.Geom.PageSize(420, 595)
 
static readonly iText.Kernel.Geom.PageSize  A6 = new iText.Kernel.Geom.PageSize(298, 420)
 
static readonly iText.Kernel.Geom.PageSize  A7 = new iText.Kernel.Geom.PageSize(210, 298)
 
static readonly iText.Kernel.Geom.PageSize  A8 = new iText.Kernel.Geom.PageSize(148, 210)
 
static readonly iText.Kernel.Geom.PageSize  A9 = new iText.Kernel.Geom.PageSize(105, 547)
 
static readonly iText.Kernel.Geom.PageSize  A10 = new iText.Kernel.Geom.PageSize(74, 105)
 
static readonly iText.Kernel.Geom.PageSize  B0 = new iText.Kernel.Geom.PageSize(2834, 4008)
 
static readonly iText.Kernel.Geom.PageSize  B1 = new iText.Kernel.Geom.PageSize(2004, 2834)
 
static readonly iText.Kernel.Geom.PageSize  B2 = new iText.Kernel.Geom.PageSize(1417, 2004)
 
static readonly iText.Kernel.Geom.PageSize  B3 = new iText.Kernel.Geom.PageSize(1000, 1417)
 
static readonly iText.Kernel.Geom.PageSize  B4 = new iText.Kernel.Geom.PageSize(708, 1000)
 
static readonly iText.Kernel.Geom.PageSize  B5 = new iText.Kernel.Geom.PageSize(498, 708)
 
static readonly iText.Kernel.Geom.PageSize  B6 = new iText.Kernel.Geom.PageSize(354, 498)
 
static readonly iText.Kernel.Geom.PageSize  B7 = new iText.Kernel.Geom.PageSize(249, 354)
 
static readonly iText.Kernel.Geom.PageSize  B8 = new iText.Kernel.Geom.PageSize(175, 249)
 
static readonly iText.Kernel.Geom.PageSize  B9 = new iText.Kernel.Geom.PageSize(124, 175)
 
static readonly iText.Kernel.Geom.PageSize  B10 = new iText.Kernel.Geom.PageSize(88, 124)
 
static readonly iText.Kernel.Geom.PageSize  DEFAULT = A4
 
static readonly iText.Kernel.Geom.PageSize  EXECUTIVE = new iText.Kernel.Geom.PageSize(522, 756)
 
static readonly iText.Kernel.Geom.PageSize  LEDGER = new iText.Kernel.Geom.PageSize(1224, 792)
 
static readonly iText.Kernel.Geom.PageSize  LEGAL = new iText.Kernel.Geom.PageSize(612, 1008)
 
static readonly iText.Kernel.Geom.PageSize  LETTER = new iText.Kernel.Geom.PageSize(612, 792)
 
static readonly iText.Kernel.Geom.PageSize  TABLOID = new iText.Kernel.Geom.PageSize(792, 1224)
 

Additional Inherited Members

- Static Public Member Functions inherited from iText.Kernel.Geom.Rectangle
static iText.Kernel.Geom.Rectangle  GetCommonRectangle (params iText.Kernel.Geom.Rectangle[] rectangles)
  Calculates the common rectangle which includes all the input rectangles. More...
 
static iText.Kernel.Geom.Rectangle  GetRectangleOnRotatedPage (iText.Kernel.Geom.Rectangle rect, PdfPage page)
  Gets the rectangle as it looks on the rotated page and returns the rectangle in coordinates relevant to the true page origin. More...
 
static iText.Kernel.Geom.Rectangle  CalculateBBox (IList< Point > points)
  Calculates the bounding box of passed points. More...
 
static IList< iText.Kernel.Geom.Rectangle CreateBoundingRectanglesFromQuadPoint (PdfArray quadPoints)
  Create a list of bounding rectangles from an 8 x n array of Quadpoints. More...
 
static iText.Kernel.Geom.Rectangle  CreateBoundingRectangleFromQuadPoint (PdfArray quadPoints)
  Create the bounding rectangle for the given array of quadpoints. More...
 

Member Function Documentation

◆ Clone()

override Rectangle iText.Kernel.Geom.PageSize.Clone ( )
inlinevirtual

Creates a "deep copy" of this PageSize, meaning the object returned by this method will be independent of the object being cloned.

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.

Returns
the copied PageSize.

Reimplemented from iText.Kernel.Geom.Rectangle.

◆ Rotate()

virtual iText.Kernel.Geom.PageSize iText.Kernel.Geom.PageSize.Rotate ( )
inlinevirtual

Rotates PageSize clockwise.

Returns
the rotated PageSize.