HiraokaHyperTools.iTextSharp-LGPL  0.2.5
iTextSharp.text.pdf.PdfRectangle Class Reference
Inheritance diagram for iTextSharp.text.pdf.PdfRectangle:
iTextSharp.text.pdf.PdfArray iTextSharp.text.pdf.PdfObject

Public Member Functions

 PdfRectangle (float llx, float lly, float urx, float ury, int rotation)
 
 PdfRectangle (float llx, float lly, float urx, float ury)
 
 PdfRectangle (float urx, float ury, int rotation)
 
 PdfRectangle (float urx, float ury)
 
 PdfRectangle (Rectangle rectangle, int rotation)
 
 PdfRectangle (Rectangle rectangle)
 
override bool Add (PdfObject obj)
 
override bool Add (float[] values)
 
override bool Add (int[] values)
 
override void AddFirst (PdfObject obj)
 
float GetLeft (int margin)
 
float GetRight (int margin)
 
float GetTop (int margin)
 
float GetBottom (int margin)
 
- Public Member Functions inherited from iTextSharp.text.pdf.PdfArray
 PdfArray ()
 
 PdfArray (PdfObject obj)
 
 PdfArray (float[] values)
 
 PdfArray (int[] values)
 
 PdfArray (ArrayList l)
 
 PdfArray (PdfArray array)
 
override void ToPdf (PdfWriter writer, Stream os)
 
PdfObject Remove (int idx)
 
bool IsEmpty ()
 
virtual void Add (int index, PdfObject element)
 
bool Contains (PdfObject obj)
 
ListIterator GetListIterator ()
 
override string ToString ()
 
PdfObject GetDirectObject (int idx)
 
PdfDictionary GetAsDict (int idx)
 
PdfArray GetAsArray (int idx)
 
PdfStream GetAsStream (int idx)
 
PdfString GetAsString (int idx)
 
PdfNumber GetAsNumber (int idx)
 
PdfName GetAsName (int idx)
 
PdfBoolean GetAsBoolean (int idx)
 
PdfIndirectReference GetAsIndirectObject (int idx)
 
IEnumerator GetEnumerator ()
 
- Public Member Functions inherited from iTextSharp.text.pdf.PdfObject
virtual byte[] GetBytes ()
 
bool CanBeInObjStm ()
 
override string ToString ()
 
bool IsNull ()
 
bool IsBoolean ()
 
bool IsNumber ()
 
bool IsString ()
 
bool IsName ()
 
bool IsArray ()
 
bool IsDictionary ()
 
bool IsStream ()
 
bool IsIndirect ()
 

Properties

Rectangle Rectangle [get]
 
float Left [get]
 
float Right [get]
 
float Top [get]
 
float Bottom [get]
 
float Width [get]
 
float Height [get]
 
PdfRectangle Rotate [get]
 
- Properties inherited from iTextSharp.text.pdf.PdfArray
PdfObject this[int idx] [get, set]
 
ArrayList ArrayList [get]
 
int Size [get]
 
- Properties inherited from iTextSharp.text.pdf.PdfObject
int Length [get]
 
string Content [set]
 
int Type [get]
 
PRIndirectReference IndRef [get, set]
 

Additional Inherited Members

- Static Public Attributes inherited from iTextSharp.text.pdf.PdfObject
const int BOOLEAN = 1
 
const int NUMBER = 2
 
const int STRING = 3
 
const int NAME = 4
 
const int ARRAY = 5
 
const int DICTIONARY = 6
 
const int STREAM = 7
 
const int NULL = 8
 
const int INDIRECT = 10
 
const string NOTHING = ""
 
const string TEXT_PDFDOCENCODING = "PDF"
 
const string TEXT_UNICODE = "UnicodeBig"
 
- Protected Member Functions inherited from iTextSharp.text.pdf.PdfObject
 PdfObject (int type)
 
 PdfObject (int type, string content)
 
 PdfObject (int type, byte[] bytes)
 
- Protected Attributes inherited from iTextSharp.text.pdf.PdfArray
ArrayList arrayList
 
- Protected Attributes inherited from iTextSharp.text.pdf.PdfObject
byte[] bytes
 
int type
 
PRIndirectReference indRef
 

Detailed Description

PdfRectangle is the PDF Rectangle object.

Rectangles are used to describe locations on the page and bounding boxes for several objects in PDF, such as fonts. A rectangle is represented as an array of four numbers, specifying the lower lef x, lower left y, upper right x, and upper right y coordinates of the rectangle, in that order.
This object is described in the 'Portable Document Format Reference Manual version 1.3' section 7.1 (page 183).

See also
iTextSharp.text.Rectangle
PdfArray

Constructor & Destructor Documentation

◆ PdfRectangle() [1/6]

iTextSharp.text.pdf.PdfRectangle.PdfRectangle ( float  llx,
float  lly,
float  urx,
float  ury,
int  rotation 
)

Constructs a PdfRectangle-object.

Parameters
llxlower left x
llylower left y
urxupper right x
uryupper right y
Since
rugPdf0.10

◆ PdfRectangle() [2/6]

iTextSharp.text.pdf.PdfRectangle.PdfRectangle ( float  llx,
float  lly,
float  urx,
float  ury 
)

◆ PdfRectangle() [3/6]

iTextSharp.text.pdf.PdfRectangle.PdfRectangle ( float  urx,
float  ury,
int  rotation 
)

Constructs a PdfRectangle-object starting from the origin (0, 0).

Parameters
urxupper right x
uryupper right y

◆ PdfRectangle() [4/6]

iTextSharp.text.pdf.PdfRectangle.PdfRectangle ( float  urx,
float  ury 
)

◆ PdfRectangle() [5/6]

iTextSharp.text.pdf.PdfRectangle.PdfRectangle ( Rectangle  rectangle,
int  rotation 
)

Constructs a PdfRectangle-object with a Rectangle-object.

Parameters
rectanglea Rectangle

◆ PdfRectangle() [6/6]

iTextSharp.text.pdf.PdfRectangle.PdfRectangle ( Rectangle  rectangle)

Member Function Documentation

◆ Add() [1/3]

override bool iTextSharp.text.pdf.PdfRectangle.Add ( float[]  values)
virtual

Block changes to the underlying PdfArray

Parameters
valuesstuff we'll ignore. Ha!
Returns
false. You can't add anything to a PdfRectangle
Since
2.1.5

Reimplemented from iTextSharp.text.pdf.PdfArray.

◆ Add() [2/3]

override bool iTextSharp.text.pdf.PdfRectangle.Add ( int[]  values)
virtual

Block changes to the underlying PdfArray

Parameters
valuesstuff we'll ignore. Ha!
Returns
false. You can't add anything to a PdfRectangle
Since
2.1.5

Reimplemented from iTextSharp.text.pdf.PdfArray.

◆ Add() [3/3]

override bool iTextSharp.text.pdf.PdfRectangle.Add ( PdfObject  obj)
virtual

Overrides the add-method in PdfArray in order to prevent the adding of extra object to the array.

Parameters
objectPdfObject to add (will not be added here)
Returns
false

Reimplemented from iTextSharp.text.pdf.PdfArray.

◆ AddFirst()

override void iTextSharp.text.pdf.PdfRectangle.AddFirst ( PdfObject  obj)
virtual

Block changes to the underlying PdfArray

Parameters
objectIgnored.
Since
2.1.5

Reimplemented from iTextSharp.text.pdf.PdfArray.

◆ GetBottom()

float iTextSharp.text.pdf.PdfRectangle.GetBottom ( int  margin)

Returns the lower left y-coordinate, considering a given margin.

Parameters
margina margin
Returns
the lower left y-coordinate

◆ GetLeft()

float iTextSharp.text.pdf.PdfRectangle.GetLeft ( int  margin)

Returns the lower left x-coordinate, considering a given margin.

Parameters
margina margin
Returns
the lower left x-coordinate

◆ GetRight()

float iTextSharp.text.pdf.PdfRectangle.GetRight ( int  margin)

Returns the upper right x-coordinate, considering a given margin.

Parameters
margina margin
Returns
the upper right x-coordinate

◆ GetTop()

float iTextSharp.text.pdf.PdfRectangle.GetTop ( int  margin)

Returns the upper right y-coordinate, considering a given margin.

Parameters
margina margin
Returns
the upper right y-coordinate

Property Documentation

◆ Bottom

float iTextSharp.text.pdf.PdfRectangle.Bottom
get

Returns the lower left y-coordinate.

Returns
the lower left y-coordinate

◆ Height

float iTextSharp.text.pdf.PdfRectangle.Height
get

Returns the height of the rectangle.

Returns
a height

◆ Left

float iTextSharp.text.pdf.PdfRectangle.Left
get

Returns the lower left x-coordinate.

Returns
the lower left x-coordinaat

◆ Rectangle

Rectangle iTextSharp.text.pdf.PdfRectangle.Rectangle
get

Returns the high level version of this PdfRectangle

Returns
this PdfRectangle translated to class Rectangle

◆ Right

float iTextSharp.text.pdf.PdfRectangle.Right
get

Returns the upper right x-coordinate.

Returns
the upper right x-coordinate

◆ Rotate

PdfRectangle iTextSharp.text.pdf.PdfRectangle.Rotate
get

Swaps the values of urx and ury and of lly and llx in order to rotate the rectangle.

Returns
a PdfRectangle

◆ Top

float iTextSharp.text.pdf.PdfRectangle.Top
get

Returns the upper right y-coordinate.

Returns
the upper right y-coordinate

◆ Width

float iTextSharp.text.pdf.PdfRectangle.Width
get

Returns the width of the rectangle.

Returns
a width

The documentation for this class was generated from the following file: