public class CPDFStampAnnotation extends CPDFAnnotation
Modifier and Type | Class and Description |
---|---|
static class |
CPDFStampAnnotation.CPDFStampAnnotationAttr |
static class |
CPDFStampAnnotation.DigitalStamp
Digital stamp attribute which includes text content, color and date.
|
static class |
CPDFStampAnnotation.StampType
Stamp type.
|
static class |
CPDFStampAnnotation.StandardStamp
Standard font enumeration of standard stamp.
|
static class |
CPDFStampAnnotation.TextStamp
Text stamp attribute which includes text content, color, date and shape.
|
static class |
CPDFStampAnnotation.TextStampColor
Color enumeration of text stamp.
|
static class |
CPDFStampAnnotation.TextStampShape
Border style enumeration of text stamp.
|
CPDFAnnotation.AppearanceType, CPDFAnnotation.BorderEffectIntensity, CPDFAnnotation.CPDFBorderEffectType, CPDFAnnotation.Flags, CPDFAnnotation.MarkState, CPDFAnnotation.MediaSourceType, CPDFAnnotation.ReviewState, CPDFAnnotation.Type
index
Modifier and Type | Method and Description |
---|---|
void |
applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr) |
CPDFAnnotationUndoAttr |
getAnnotationAttr() |
CPDFStampAnnotation.DigitalStamp |
getDigitalStamp()
Gets attribute of digital stamp.
|
CPDFStampAnnotation.StampType |
getStampType()
Gets stamp type.
|
CPDFStampAnnotation.StandardStamp |
getStandardStamp()
Gets standard stamp type.
|
CPDFStampAnnotation.TextStamp |
getTextStamp()
Gets attribute of text stamp.
|
boolean |
isStampSignature() |
boolean |
setDigitalStamp(CPDFStampAnnotation.DigitalStamp digitalStamp)
Sets attribute of digital stamp.
|
boolean |
setImageStamp(java.lang.String imagePath)
Sets resource of image stamp.
|
boolean |
setRect(android.graphics.RectF rect)
Sets annotation rectangle.
|
boolean |
setRect(android.graphics.RectF rect,
boolean addToUndo) |
void |
setShouldUpdateAp(boolean update) |
boolean |
setStampSignature(boolean isStampSignature) |
boolean |
setStandardStamp(CPDFStampAnnotation.StandardStamp standardStamp)
Sets standard stamp type.
|
boolean |
setTextStamp(CPDFStampAnnotation.TextStamp textStamp)
Sets attribute of text stamp.
|
boolean |
updateAp()
Updates annotation appearance.
|
addToPage, close, createReplyAnnotation, disableListenAttrChanged, enableListenAttrChanged, equal, equal, getAllReplyAnnotations, getAnnotIndexFromNative, getAnnotPtr, getAppearance, getAppearanceByPixel, getApRotation, getBordEffectIntensity, getBordEffectType, getBorderWidth, getContent, getCreationDate, getFlags, getMarkedAnnotState, getName, getRecentlyModifyDate, getRect, getReviewAnnotState, getRotateRectPoint, getRotation, getSourceRect, getTitle, getType, getVertices, hasAp, isAllowCorrectAnnotationAp, isHidden, isLocked, isReadOnly, isValid, moveAnnotIndex, removeAp, removeFromPage, removeFromPageIncludeReplyAnnot, setAllowCorrectAnnotationAp, setAnnotTop, setBordEffectIntensity, setBordEffectType, setBorderWidth, setContent, setCreationDate, setFlags, setHidden, setLocked, setMarkedAnnotState, setName, setOnAnnotationChangedListener, setReadOnly, setRecentlyModifyDate, setReviewAnnotState, setRotation, setSourceRect, setTitle, setVertices, updateApWithBitmap, updateApWithImage
public boolean setStandardStamp(CPDFStampAnnotation.StandardStamp standardStamp)
standardStamp
- Standard stamp type.public CPDFStampAnnotation.StandardStamp getStandardStamp()
public boolean setTextStamp(CPDFStampAnnotation.TextStamp textStamp)
textStamp
- Attribute of text stamp.public CPDFStampAnnotation.TextStamp getTextStamp()
public boolean setDigitalStamp(CPDFStampAnnotation.DigitalStamp digitalStamp)
digitalStamp
- Attribute of digital stamp.public CPDFStampAnnotation.DigitalStamp getDigitalStamp()
public boolean setImageStamp(java.lang.String imagePath)
imagePath
- Image path of stamp.public CPDFStampAnnotation.StampType getStampType()
public boolean setStampSignature(boolean isStampSignature)
public boolean isStampSignature()
public CPDFAnnotationUndoAttr getAnnotationAttr()
getAnnotationAttr
in class CPDFAnnotation
public void applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr)
applyAnnotationAttr
in class CPDFAnnotation
public boolean setRect(android.graphics.RectF rect)
CPDFAnnotation
CPDFPage.convertRectToPage(boolean, float, float, RectF)
.setRect
in class CPDFAnnotation
rect
- Rectangle on the page.public boolean setRect(android.graphics.RectF rect, boolean addToUndo)
public void setShouldUpdateAp(boolean update)
public boolean updateAp()
CPDFAnnotation
updateAp
in class CPDFAnnotation