public class StickyNote extends MarkupAnnotation
Modifier and Type | Method and Description |
---|---|
static StickyNote |
create(Document targetDocument,
Point topLeft,
java.lang.String content,
Paint paint)
Create a sticky note annotation.
|
static StickyNote |
createDynamicObject(long handle) |
Paint |
getPaint()
The paint for the icon and the popup (Getter)
|
Popup |
getPopup()
The pop-up (Getter)
|
getInfo, getLocked, getReplies
copy, getBoundingBox, getHidden, getNoPrint, getNoRotate, getNoZoom
equals, hashCode
public static StickyNote createDynamicObject(long handle)
public static StickyNote create(Document targetDocument, Point topLeft, java.lang.String content, Paint paint)
targetDocument
- The output document with which the returned object is associatedtopLeft
- The location of the annotation's upper left corner on the pagecontent
- The text contentpaint
- The paint for the sticky note icon.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 the paint
argument is null
java.lang.IllegalArgumentException
- if the color space of the paint
argument is not a device color spacejava.lang.IllegalArgumentException
- if the paint
has a non-null
pdftoolbox.pdf.content.Paint.getTransparency
with pdftoolbox.pdf.content.Transparency.getBlendMode
other than pdftoolbox.pdf.content.BlendMode.NORMAL
java.lang.IllegalArgumentException
- if the paint
argument is not associated with the targetDocument
java.lang.IllegalArgumentException
- if topLeft
is null
public Paint getPaint() throws CorruptException
java.lang.IllegalStateException
- if the object has already been closedCorruptException
- if the PDF is corrupt and the annotation's paint cannot be readpublic Popup getPopup()
java.lang.IllegalStateException
- if the object has already been closed