public class PDAnnotationCaret extends PDAnnotationMarkup
| Modifier and Type | Field and Description |
|---|---|
static String |
SUB_TYPE
The type of annotation.
|
RT_GROUP, RT_REPLY| Constructor and Description |
|---|
PDAnnotationCaret() |
PDAnnotationCaret(COSDictionary field)
Creates a Caret annotation from a COSDictionary, expected to be a correct object definition.
|
| Modifier and Type | Method and Description |
|---|---|
void |
constructAppearances()
Create the appearance entry for this annotation.
|
void |
constructAppearances(PDDocument document)
Create the appearance entry for this annotation.
|
float[] |
getRectDifferences()
This will get the margin between the annotations "outer" rectangle defined by
/Rect and the boundaries of the underlying caret.
|
void |
setCustomAppearanceHandler(PDAppearanceHandler appearanceHandler)
Set a custom appearance handler for generating the annotations appearance streams.
|
void |
setRectDifferences(float difference)
This will set the difference between the annotations "outer" rectangle defined by
/Rect and boundaries of the underlying.
|
void |
setRectDifferences(float differenceLeft,
float differenceTop,
float differenceRight,
float differenceBottom)
This will set the difference between the annotations "outer" rectangle defined by
/Rect and the border.
|
getBorderStyle, getConstantOpacity, getCreationDate, getExternalData, getInReplyTo, getIntent, getPopup, getReplyType, getRichContents, getSubject, getTitlePopup, setBorderStyle, setConstantOpacity, setCreationDate, setExternalData, setInReplyTo, setIntent, setPopup, setReplyType, setRichContents, setSubject, setTitlePopupcreateAnnotation, equals, getAnnotationFlags, getAnnotationName, getAppearance, getAppearanceState, getBorder, getColor, getColor, getContents, getCOSObject, getModifiedDate, getNormalAppearanceStream, getOptionalContent, getPage, getRectangle, getStructParent, getSubtype, hashCode, isHidden, isInvisible, isLocked, isLockedContents, isNoRotate, isNoView, isNoZoom, isPrinted, isReadOnly, isToggleNoView, setAnnotationFlags, setAnnotationName, setAppearance, setAppearanceState, setBorder, setColor, setContents, setHidden, setInvisible, setLocked, setLockedContents, setModifiedDate, setModifiedDate, setNoRotate, setNoView, setNoZoom, setOptionalContent, setPage, setPrinted, setReadOnly, setRectangle, setStructParent, setSubtype, setToggleNoViewpublic static final String SUB_TYPE
public PDAnnotationCaret()
public PDAnnotationCaret(COSDictionary field)
field - the PDF object to represent as a field.public void setRectDifferences(float difference)
This will set an equal difference for all sides
difference - from the annotations /Rect entrypublic void setRectDifferences(float differenceLeft,
float differenceTop,
float differenceRight,
float differenceBottom)
differenceLeft - left difference from the annotations /Rect entrydifferenceTop - top difference from the annotations /Rect entrydifferenceRight - right difference from the annotations /Rect entrydifferenceBottom - bottom difference from the annotations /Rect entrypublic float[] getRectDifferences()
public void setCustomAppearanceHandler(PDAppearanceHandler appearanceHandler)
appearanceHandler - custom appearance handlerpublic void constructAppearances()
PDAnnotationconstructAppearances in class PDAnnotationpublic void constructAppearances(PDDocument document)
PDAnnotationconstructAppearances in class PDAnnotationdocument - the related documentCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.