Package com.compdfkit.core.annotation
Class CPDFStampAnnotation
java.lang.Object
com.compdfkit.core.annotation.CPDFAnnotation
com.compdfkit.core.annotation.CPDFStampAnnotation
A stamp annotation displays text or graphics intended to look as if they were stamped on the page with a rubber stamp.
A stamp annotation's appearance can be with an icon or a bitmap.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDigital stamp attribute which includes text content, color and date.static enumStamp type.static enumStandard font enumeration of standard stamp.static classText stamp attribute which includes text content, color, date and shape.static enumColor enumeration of text stamp.static enumBorder style enumeration of text stamp.Nested classes/interfaces inherited from class com.compdfkit.core.annotation.CPDFAnnotation
CPDFAnnotation.AppearanceType, CPDFAnnotation.Flags, CPDFAnnotation.PSOAnnotationState, CPDFAnnotation.Type -
Method Summary
Modifier and TypeMethodDescriptionint[]getAppearanceByPixel(int width, int height, CPDFAnnotation.AppearanceType type) Gets attribute of digital stamp.Not in use currentlyGets stamp type.Gets standard stamp type.Gets attribute of text stamp.booleanbooleansetDigitalStamp(CPDFStampAnnotation.DigitalStamp digitalStamp) Sets attribute of digital stamp.booleansetIconName(String name) Not in use currentlybooleansetImageStamp(String imagePath) Sets resource of image stamp.booleansetStampSignature(boolean isStampSignature) booleansetStandardStamp(CPDFStampAnnotation.StandardStamp standardStamp) Sets standard stamp type.booleansetTextStamp(CPDFStampAnnotation.TextStamp textStamp) Sets attribute of text stamp.booleanupdateAp()booleanupdateApWithBitmap(int[] pixels, int width, int height) Methods inherited from class com.compdfkit.core.annotation.CPDFAnnotation
addToPage, close, createReplyAnnotation, createReplyStateAnnotation, getContent, getCreationDate, getFlags, getMainAnnotNM, getName, getRecentlyModifyDate, getRect, getReplies, getState, getTitle, getType, hasAp, isAllowCorrectAnnotationAp, isExitMainAnnot, isHidden, isLocked, isMarkedStateAnnot, isReplyAnnot, isReviewStateAnnot, isValid, removeFromPage, removeFromPageIncludeReplyAnnot, setAllowCorrectAnnotationAp, setContent, setCreationDate, setFlags, setHidden, setLocked, setMarkedAnnotState, setName, setRecentlyModifyDate, setRect, setReviewAnnotState, setState, setTitle
-
Method Details
-
setStandardStamp
Sets standard stamp type.- Parameters:
standardStamp- Standard stamp type.- Returns:
- Returns whether to successfully set standard stamp type.
-
getStandardStamp
Gets standard stamp type.- Returns:
- Returns standard stamp type.
-
setTextStamp
Sets attribute of text stamp.- Parameters:
textStamp- Attribute of text stamp.- Returns:
- Returns whether to successfully set attribute of text stamp.
-
getTextStamp
Gets attribute of text stamp.- Returns:
- Returns attribute of text stamp.
-
setDigitalStamp
Sets attribute of digital stamp.- Parameters:
digitalStamp- Attribute of digital stamp.- Returns:
- Returns whether to successfully set attribute of digital stamp.
-
getDigitalStamp
Gets attribute of digital stamp.- Returns:
- Returns attribute of digital stamp.
-
setImageStamp
Sets resource of image stamp.- Parameters:
imagePath- Image path of stamp.- Returns:
- Returns whether to successfully set resource of image stamp.
-
getStampType
Gets stamp type.- Returns:
- Returns stamp type
-
setStampSignature
public boolean setStampSignature(boolean isStampSignature) -
isStampSignature
public boolean isStampSignature() -
setIconName
Not in use currently -
getIconName
Not in use currently -
updateAp
public boolean updateAp() -
updateApWithBitmap
public boolean updateApWithBitmap(int[] pixels, int width, int height) -
getAppearanceByPixel
-