public class CPDFSignatureWidget extends CPDFWidget
Modifier and Type | Class and Description |
---|---|
static class |
CPDFSignatureWidget.TPDFSignatureWidgetAttr |
CPDFWidget.BorderStyle, CPDFWidget.CheckStyle, CPDFWidget.WidgetType
CPDFAnnotation.AppearanceType, CPDFAnnotation.BorderEffectIntensity, CPDFAnnotation.CPDFBorderEffectType, CPDFAnnotation.MarkState, CPDFAnnotation.MediaSourceType, CPDFAnnotation.ReviewState, CPDFAnnotation.Type
index
Modifier and Type | Method and Description |
---|---|
void |
applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr) |
boolean |
checkSignatureToWidget(CPDFSignature signature)
Whether the widget corresponds to the signature.
|
CPDFAnnotationUndoAttr |
getAnnotationAttr() |
CPDFSignature |
getSignature(CPDFDocument document)
Get the signature of the signature widget.
|
boolean |
isSigned()
Whether signature form is signed.
|
boolean |
resetForm()
Resets forms.
|
boolean |
signWithName()
Sets Signature form as signed.
|
boolean |
updateApWithBitmap(android.graphics.Bitmap bitmap)
Updates form appearance by Bitmap.
|
boolean |
updateApWithBitmap(android.graphics.Bitmap bitmap,
CPDFImageScaleType imageScaleType)
Updates form appearance by Bitmap.
|
boolean |
updateApWithDigitalSigConfig(CPDFDigitalSigConfig config)
Update AP of the signature Widget.
|
boolean |
updateApWithImage(java.lang.String imagePath,
java.lang.String smaskPath,
CPDFImageScaleType imageScaleType)
Updates form appearance by image.
|
boolean |
updateApWithInk(android.graphics.PointF[][] path,
float width,
int color)
Updates form appearance by Ink.
|
boolean |
updateApWithText(java.lang.String text,
java.lang.String fontName,
int color)
Updates form appearance by text.
|
clearBorderColor, clearFillColor, getBorderColor, getBorderStyles, getBorderWidth, getCheckStyle, getFieldFlag, getFieldName, getFieldType, getFillAlpha, getFillColor, getRect, getWidgetType, isReadOnly, setBorderColor, setBorderStyles, setBorderWidth, setCheckStyle, setFieldFlag, setFieldName, setFieldType, setFillAlpha, setFillColor, setReadOnly, setRect, updateAp, updateAp
addToPage, close, createReplyAnnotation, disableListenAttrChanged, enableListenAttrChanged, equal, equal, getAllReplyAnnotations, getAnnotIndexFromNative, getAnnotPtr, getAppearance, getAppearanceByPixel, getApRotation, getBordEffectIntensity, getBordEffectType, getContent, getCreationDate, getFlags, getMarkedAnnotState, getName, getRecentlyModifyDate, getReviewAnnotState, getRotateRectPoint, getRotation, getSourceRect, getTitle, getType, getVertices, hasAp, isAllowCorrectAnnotationAp, isHidden, isLocked, isValid, moveAnnotIndex, removeAp, removeFromPage, removeFromPageIncludeReplyAnnot, setAllowCorrectAnnotationAp, setAnnotTop, setBordEffectIntensity, setBordEffectType, setContent, setCreationDate, setFlags, setHidden, setLocked, setMarkedAnnotState, setName, setOnAnnotationChangedListener, setRecentlyModifyDate, setReviewAnnotState, setRotation, setSourceRect, setTitle, setVertices, updateApWithImage
public boolean isSigned()
public boolean updateApWithText(java.lang.String text, java.lang.String fontName, int color)
text
- Text content of signaturefontName
- Font name of signature text, get font name byCPDFTextAttribute.FontNameHelper
color
- Text color.CPDFTextAttribute.FontNameHelper
public boolean updateApWithImage(java.lang.String imagePath, java.lang.String smaskPath, CPDFImageScaleType imageScaleType)
imagePath
- Original image path, image format must bejpeg
, jpg
smaskPath
- Mask path, image format must bejpeg
, jpg
imageScaleType
- The zoom rule for filling the image into the form, more: CPDFImageScaleType
public boolean updateApWithBitmap(android.graphics.Bitmap bitmap, CPDFImageScaleType imageScaleType)
bitmap
- Image.imageScaleType
- The zoom rule for filling the image into the form, more: CPDFImageScaleType
public boolean updateApWithInk(android.graphics.PointF[][] path, float width, int color)
path
- Points collection on the path, PointF[]
means one line, PointF[][]
means multiple lines.width
- Line width.color
- Line color.public CPDFAnnotationUndoAttr getAnnotationAttr()
getAnnotationAttr
in class CPDFAnnotation
public void applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr)
applyAnnotationAttr
in class CPDFAnnotation
public boolean updateApWithBitmap(android.graphics.Bitmap bitmap)
updateApWithBitmap
in class CPDFAnnotation
bitmap
- Image.public boolean signWithName()
public boolean resetForm()
resetForm
in class CPDFWidget
public boolean updateApWithDigitalSigConfig(CPDFDigitalSigConfig config)
config
- Config data of the new AP.public CPDFSignature getSignature(CPDFDocument document)
document
- CPDFDocumentpublic boolean checkSignatureToWidget(CPDFSignature signature)
signature
- Signature