public class CustomStamp extends Stamp
| Modifier and Type | Method and Description |
|---|---|
static CustomStamp |
create(Document targetDocument,
Rectangle boundingBox)
Create a custom stamp annotation.
|
static CustomStamp |
createDynamicObject(long handle) |
Group |
getAppearance()
The custom stamp's visual appearance (Getter)
|
getPopup, getPopupPaintgetInfo, getLocked, getRepliescopy, getBoundingBox, getHidden, getNoPrint, getNoRotate, getNoZoomequals, hashCodepublic static CustomStamp createDynamicObject(long handle)
public static CustomStamp create(Document targetDocument, Rectangle boundingBox)
boundingBox,
and with coordinate origin located at the bottom left corner.
Use a pdftoolbox.pdf.content.ContentGenerator to generate the stamp's content prior to adding the stamp annotation to a page's list of annotations.targetDocument - The output document with which the returned object is associated.boundingBox - The location of the annotation on the page.java.lang.IllegalArgumentException - if the targetDocument is nulljava.lang.IllegalArgumentException - if the targetDocument has already been closedjava.lang.IllegalArgumentException - if the targetDocument is read-onlyjava.lang.IllegalArgumentException - if boundingBox is nullpublic Group getAppearance()
java.lang.IllegalStateException - if the object has already been closed