Module org.sejda.sambox
Class PDAnnotationRubberStamp
java.lang.Object
org.sejda.sambox.pdmodel.common.PDDictionaryWrapper
org.sejda.sambox.pdmodel.interactive.annotation.PDAnnotation
org.sejda.sambox.pdmodel.interactive.annotation.PDAnnotationMarkup
org.sejda.sambox.pdmodel.interactive.annotation.PDAnnotationRubberStamp
- All Implemented Interfaces:
COSObjectable
This is the class that represents a rubber stamp annotation. Introduced in PDF 1.3 specification
- Author:
- Paul King
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for the name of a rubber stamp.static final StringConstant for the name of a rubber stamp.static final StringConstant for the name of a rubber stamp.static final StringConstant for the name of a rubber stamp.static final StringConstant for the name of a rubber stamp.static final StringConstant for the name of a rubber stamp.static final StringConstant for the name of a rubber stamp.static final StringConstant for the name of a rubber stamp.static final StringConstant for the name of a rubber stamp.static final StringConstant for the name of a rubber stamp.static final StringConstant for the name of a rubber stamp.static final StringConstant for the name of a rubber stamp.static final StringConstant for the name of a rubber stamp.static final StringConstant for the name of a rubber stamp.static final StringThe type of annotation.Fields inherited from class org.sejda.sambox.pdmodel.interactive.annotation.PDAnnotationMarkup
IT_FREE_TEXT, IT_FREE_TEXT_CALLOUT, IT_FREE_TEXT_TYPE_WRITER, RT_GROUP, RT_REPLY, SUB_TYPE_CARET, SUB_TYPE_FREETEXT, SUB_TYPE_INK, SUB_TYPE_POLYGON, SUB_TYPE_POLYLINE, SUB_TYPE_SOUNDFields inherited from class org.sejda.sambox.pdmodel.interactive.annotation.PDAnnotation
FLAG_HIDDEN, FLAG_INVISIBLE, FLAG_LOCKED, FLAG_NO_ROTATE, FLAG_NO_VIEW, FLAG_NO_ZOOM, FLAG_PRINTED, FLAG_READ_ONLY, FLAG_TOGGLE_NO_VIEW -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.Creates a Rubber Stamp annotation from a COSDictionary, expected to be a correct object definition. -
Method Summary
Methods inherited from class org.sejda.sambox.pdmodel.interactive.annotation.PDAnnotationMarkup
constructAppearances, getBorderEffect, getBorderStyle, getCallout, getConstantOpacity, getCreationDate, getDefaultAppearance, getDefaultStyleString, getEndPointEndingStyle, getExternalData, getInkList, getInReplyTo, getIntent, getInteriorColor, getLineEndingStyle, getPath, getPopup, getQ, getRectDifference, getRectDifferences, getReplyType, getRichContents, getStartPointEndingStyle, getSubject, getTitlePopup, getVertices, setBorderEffect, setBorderStyle, setCallout, setConstantOpacity, setCreationDate, setCustomAppearanceHandler, setDefaultAppearance, setDefaultStyleString, setEndPointEndingStyle, setExternalData, setInkList, setInReplyTo, setIntent, setInteriorColor, setLineEndingStyle, setPopup, setQ, setRectDifference, setRectDifferences, setRectDifferences, setReplyType, setRichContents, setStartPointEndingStyle, setSubject, setTitlePopup, setVerticesMethods inherited from class org.sejda.sambox.pdmodel.interactive.annotation.PDAnnotation
createAnnotation, createAnnotation, getAnnotationFlags, getAnnotationName, getAppearance, getAppearanceState, getBorder, getColor, getColor, getContents, getModifiedDate, getNormalAppearanceStream, getOptionalContent, getPage, getRectangle, getStructParent, getSubtype, 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, setToggleNoViewMethods inherited from class org.sejda.sambox.pdmodel.common.PDDictionaryWrapper
equals, getCOSObject, hashCode
-
Field Details
-
NAME_APPROVED
Constant for the name of a rubber stamp.- See Also:
-
NAME_EXPERIMENTAL
Constant for the name of a rubber stamp.- See Also:
-
NAME_NOT_APPROVED
Constant for the name of a rubber stamp.- See Also:
-
NAME_AS_IS
Constant for the name of a rubber stamp.- See Also:
-
NAME_EXPIRED
Constant for the name of a rubber stamp.- See Also:
-
NAME_NOT_FOR_PUBLIC_RELEASE
Constant for the name of a rubber stamp.- See Also:
-
NAME_FOR_PUBLIC_RELEASE
Constant for the name of a rubber stamp.- See Also:
-
NAME_DRAFT
Constant for the name of a rubber stamp.- See Also:
-
NAME_FOR_COMMENT
Constant for the name of a rubber stamp.- See Also:
-
NAME_TOP_SECRET
Constant for the name of a rubber stamp.- See Also:
-
NAME_DEPARTMENTAL
Constant for the name of a rubber stamp.- See Also:
-
NAME_CONFIDENTIAL
Constant for the name of a rubber stamp.- See Also:
-
NAME_FINAL
Constant for the name of a rubber stamp.- See Also:
-
NAME_SOLD
Constant for the name of a rubber stamp.- See Also:
-
SUB_TYPE
The type of annotation.- See Also:
-
-
Constructor Details
-
PDAnnotationRubberStamp
public PDAnnotationRubberStamp()Constructor. -
PDAnnotationRubberStamp
Creates a Rubber Stamp annotation from a COSDictionary, expected to be a correct object definition.- Parameters:
field- the PDF objet to represent as a field.
-
-
Method Details
-
setName
This will set the name (and hence appearance, AP taking precedence) For this annotation. See the NAME_XXX constants for valid values.- Parameters:
name- The name of the rubber stamp.
-
getName
This will retrieve the name (and hence appearance, AP taking precedence) For this annotation. The default is DRAFT.- Returns:
- The name of this rubber stamp, see the NAME_XXX constants.
-