public class CPDFStampAnnotation extends CPDFAnnotation
Modifier and Type | Class and Description |
---|---|
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.Flags, CPDFAnnotation.Type
annotPtr, apRotation, pdfPage
Modifier and Type | Method and Description |
---|---|
int[] |
getAppearanceByPixel(int width,
int height,
CPDFAnnotation.AppearanceType type)
Gets annotation appearance by pixel with Bitmap.
|
CPDFStampAnnotation.DigitalStamp |
getDigitalStamp()
Gets attribute of digital stamp.
|
java.lang.String |
getIconName()
Not in use currently
|
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 |
setIconName(java.lang.String name)
Not in use currently
|
boolean |
setImageStamp(java.lang.String imagePath)
Sets resource of image stamp.
|
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.
|
boolean |
updateApWithBitmap(int[] pixels,
int width,
int height)
Upadates annotation appearance by Bitmap.
|
addToPage, clearFilledRGBColor, clearFilledTransparency, close, getApRotation, getBgRGBColor, getBorderRGBColor, getBorderStyle, getBorderWidth, getContent, getCreationDate, getFilledRGBColor, getFilledTransparency, getFlags, getName, getOverLayText, getRecentlyModifyDate, getRect, getRGBColor, getTitle, getTransparency, getType, hasAp, isAllowCorrectAnnotationAp, isHidden, isLocked, isReadOnly, isValid, removeAp, removeFromPage, setAllowCorrectAnnotationAp, setBgRGBColor, setBorderRGBColor, setBorderStyle, setBorderWidth, setContent, setCreationDate, setFilledRGBColor, setFilledTransparency, setFlags, setHidden, setLocked, setName, setOverLayText, setReadOnly, setRecentlyModifyDate, setRect, setRGBColor, setTitle, setTransparency, 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 boolean setIconName(java.lang.String name)
public java.lang.String getIconName()
public boolean updateAp()
CPDFAnnotation
updateAp
in class CPDFAnnotation
public boolean updateApWithBitmap(int[] pixels, int width, int height)
CPDFAnnotation
updateApWithBitmap
in class CPDFAnnotation
pixels
- Bitmap pixels.width
- Bitmap width.height
- Bitmap height.public int[] getAppearanceByPixel(int width, int height, CPDFAnnotation.AppearanceType type)
CPDFAnnotation
getAppearanceByPixel
in class CPDFAnnotation
width
- Bitmap width.height
- Bitmap height.type
- AppearanceType.