public class PdfRectangle extends PdfArray
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 left 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).
| Constructor and Description |
|---|
PdfRectangle(float llx,
float lly,
float urx,
float ury) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(float[] values)
Block changes to the underlying PdfArray
|
boolean |
add(int[] values)
Block changes to the underlying PdfArray
|
boolean |
add(PdfObject object)
Overrides the
add-method in PdfArray in order to prevent the adding of extra object to the array. |
void |
addFirst(PdfObject object)
Block changes to the underlying PdfArray
|
float |
bottom()
Returns the lower left y-coordinate.
|
Rectangle |
getRectangle()
Returns the high level version of this PdfRectangle
|
float |
left()
Returns the lower left x-coordinate.
|
float |
right()
Returns the upper right x-coordinate.
|
float |
top()
Returns the upper right y-coordinate.
|
getArrayList, getAsName, getAsNumber, getPdfObject, isEmpty, listIterator, size, toPdf, toStringgetBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, setContent, setIndRef, typepublic Rectangle getRectangle()
public boolean add(PdfObject object)
add-method in PdfArray in order to prevent the adding of extra object to the array.public boolean add(float[] values)
public boolean add(int[] values)
public void addFirst(PdfObject object)
public float left()
public float right()
public float top()
public float bottom()
Copyright © 2021. All rights reserved.