Class StickyNote
- java.lang.Object
-
- com.pdf_tools.fourheights.pdftoolbox.internal.NativeBase
-
- com.pdf_tools.fourheights.pdftoolbox.internal.NativeObject
-
- com.pdf_tools.fourheights.pdftoolbox.pdf.annotations.Annotation
-
- com.pdf_tools.fourheights.pdftoolbox.pdf.annotations.MarkupAnnotation
-
- com.pdf_tools.fourheights.pdftoolbox.pdf.annotations.StickyNote
-
public class StickyNote extends MarkupAnnotation
A sticky note annotation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StickyNote
create(Document targetDocument, Point topLeft, java.lang.String content, Paint paint)
Create a sticky note annotation.Paint
getPaint()
The paint for the icon and the popup (Getter)Popup
getPopup()
The pop-up (Getter)-
Methods inherited from class com.pdf_tools.fourheights.pdftoolbox.pdf.annotations.MarkupAnnotation
getInfo, getLocked, getReplies
-
Methods inherited from class com.pdf_tools.fourheights.pdftoolbox.pdf.annotations.Annotation
copy, getBoundingBox, getHidden, getId, getNoPrint, getNoRotate, getNoZoom
-
Methods inherited from class com.pdf_tools.fourheights.pdftoolbox.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
create
public static StickyNote create(Document targetDocument, Point topLeft, java.lang.String content, Paint paint)
Create a sticky note annotation.
The returned sticky note annotation is not yet part of any page. It can be added to a page's list of annotations.- Parameters:
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.- Returns:
- The newly created sticky note annotation
- Throws:
java.lang.IllegalArgumentException
- if thetargetDocument
has already been closedjava.lang.IllegalArgumentException
- if thetargetDocument
is read-onlyjava.lang.IllegalArgumentException
- if the color space of thepaint
argument is not a device color spacejava.lang.IllegalArgumentException
- if thepaint
has a non-null
pdftoolbox.pdf.content.Paint.getTransparency
withpdftoolbox.pdf.content.Transparency.getBlendMode
other thanpdftoolbox.pdf.content.BlendMode.NORMAL
java.lang.IllegalArgumentException
- if thepaint
argument is not associated with thetargetDocument
java.lang.IllegalArgumentException
- iftargetDocument
isnull
java.lang.IllegalArgumentException
- iftopLeft
isnull
java.lang.IllegalArgumentException
- ifpaint
isnull
-
getPaint
public Paint getPaint() throws CorruptException
The paint for the icon and the popup (Getter)
- Throws:
java.lang.IllegalStateException
- if the object has already been closedCorruptException
- if the PDF is corrupt and the annotation's paint cannot be read
-
getPopup
public Popup getPopup()
The pop-up (Getter)
- Throws:
java.lang.IllegalStateException
- if the object has already been closed
-
-