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, getPopupPaint
getInfo, getLocked, getReplies
copy, getBoundingBox, getHidden, getNoPrint, getNoRotate, getNoZoom
equals, hashCode
public 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 null
java.lang.IllegalArgumentException
- if the targetDocument
has already been closedjava.lang.IllegalArgumentException
- if the targetDocument
is read-onlyjava.lang.IllegalArgumentException
- if boundingBox
is null
public Group getAppearance()
java.lang.IllegalStateException
- if the object has already been closed