*/
public void setBoxes(
List<Rectangle2D> value
)
{
PdfArray quadPointsObject = new PdfArray();
double pageHeight = getPage().getBox().getHeight();
for(Rectangle2D box : value)
{
quadPointsObject.add(new PdfReal(box.getX())); // x1.
quadPointsObject.add(new PdfReal(pageHeight-(box.getY()+box.getHeight()))); // y1.
quadPointsObject.add(new PdfReal(box.getX()+box.getWidth())); // x2.
quadPointsObject.add(quadPointsObject.get(1)); // y2.
quadPointsObject.add(quadPointsObject.get(2)); // x3.
quadPointsObject.add(new PdfReal(pageHeight-box.getY())); // y3.
quadPointsObject.add(quadPointsObject.get(0)); // x4.
quadPointsObject.add(quadPointsObject.get(5)); // y4.
}
getBaseDataObject().put(PdfName.QuadPoints,quadPointsObject);
}