public class Rect extends AbstractShape
| Constructor and Description |
|---|
Rect() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.pdfbox.pdmodel.PDDocument pdDocument,
org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
Position upperLeft,
float width,
float height)
Adds (the path of) the shape without drawing anything.
|
draw, fillpublic void add(org.apache.pdfbox.pdmodel.PDDocument pdDocument,
org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
Position upperLeft,
float width,
float height)
throws IOException
ShapepdDocument - the underlying pdfbox document.contentStream - the stream to draw to.upperLeft - the upper left position to start drawing.width - the width of the bounding box.height - the height of the bounding box.IOException - by pdfboxCopyright © 2022. All rights reserved.