org.pdfbox.pdmodel.interactive.annotation
Class PDAnnotationTextMarkup
- COSObjectable
public class PDAnnotationTextMarkup
This is the abstract class that represents a text markup annotation
Introduced in PDF 1.3 specification, except Squiggly lines in 1.4.
float[] | getQuadPoints()- This will retrieve the set of quadpoints which encompass the areas of
this annotation.
|
String | getSubtype()- This will retrieve the sub type (and hence appearance, AP taking precedence)
For this annotation.
|
void | setQuadPoints(float[] quadPoints)- This will set the set of quadpoints which encompass the areas of this
annotation.
|
void | setSubtype(String subType)- This will set the sub type (and hence appearance, AP taking precedence) For
this annotation.
|
getConstantOpacity, getCreationDate, getInReplyTo, getIntent, getPopup, getReplyType, getRichContents, getSubject, getTitlePopup, setConstantOpacity, setCreationDate, setInReplyTo, setIntent, setPopup, setReplyType, setRichContents, setSubject, setTitlePopup |
createAnnotation, getAction, getActions, getAnnotationFlags, getAnnotationName, getAppearance, getAppearanceStream, getBoderStyle, getCOSObject, getColour, getContents, getDictionary, getModifiedDate, getRectangle, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrinted, isReadOnly, isToggleNoView, setAction, setActions, setAnnotationFlags, setAnnotationName, setAppearance, setAppearanceStream, setBorderStyle, setColour, setContents, setHidden, setInvisible, setLocked, setModifiedDate, setNoRotate, setNoView, setNoZoom, setPrinted, setReadOnly, setRectangle, setToggleNoView |
SUB_TYPE_HIGHLIGHT
public static final String SUB_TYPE_HIGHLIGHT
The types of annotation.
SUB_TYPE_SQUIGGLY
public static final String SUB_TYPE_SQUIGGLY
The types of annotation.
SUB_TYPE_STRIKEOUT
public static final String SUB_TYPE_STRIKEOUT
The types of annotation.
SUB_TYPE_UNDERLINE
public static final String SUB_TYPE_UNDERLINE
The types of annotation.
PDAnnotationTextMarkup
public PDAnnotationTextMarkup(String subType)
Creates a TextMarkup annotation of the specified sub type.
subType - the subtype the annotation represents
PDAnnotationTextMarkup
public PDAnnotationTextMarkup(COSDictionary field)
Creates a TextMarkup annotation from a COSDictionary, expected to be a
correct object definition.
field - the PDF objet to represent as a field.
getQuadPoints
public float[] getQuadPoints()
This will retrieve the set of quadpoints which encompass the areas of
this annotation.
- An array of floats representing the quad points.
getSubtype
public String getSubtype()
This will retrieve the sub type (and hence appearance, AP taking precedence)
For this annotation.
- The subtype of this annotation, see the SUB_TYPE_XXX constants.
setQuadPoints
public void setQuadPoints(float[] quadPoints)
This will set the set of quadpoints which encompass the areas of this
annotation.
quadPoints - an array representing the set of area covered
setSubtype
public void setSubtype(String subType)
This will set the sub type (and hence appearance, AP taking precedence) For
this annotation. See the SUB_TYPE_XXX constants for valid values.
subType - The subtype of the annotation