public interface Drawable
| Modifier and Type | Method and Description |
|---|---|
void |
draw(org.apache.pdfbox.pdmodel.PDDocument pdDocument,
org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
Position upperLeft,
DrawListener drawListener)
Draws the object at the given position.
|
Position |
getAbsolutePosition()
If an absolute position is given, the drawable will be drawn at this
position ignoring any
Layout. |
float |
getHeight() |
float |
getWidth() |
Drawable |
removeLeadingEmptyVerticalSpace() |
float getWidth()
throws IOException
IOException - by pdfboxfloat getHeight()
throws IOException
IOException - by pdfboxPosition getAbsolutePosition() throws IOException
Layout.IOException - by pdfboxvoid draw(org.apache.pdfbox.pdmodel.PDDocument pdDocument,
org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
Position upperLeft,
DrawListener drawListener)
throws IOException
pdDocument - the underlying pdfbox document.contentStream - the stream to draw to.upperLeft - the upper left position to start drawing.drawListener - the listener to
notify on
drawn objects.IOException - by pdfboxDrawable removeLeadingEmptyVerticalSpace() throws IOException
IOException - by pdfboxCopyright © 2022. All rights reserved.