public class CPDFSignatureWidget extends CPDFWidget
| Modifier and Type | Class and Description |
|---|---|
static class |
CPDFSignatureWidget.TPDFSignatureWidgetAttr |
CPDFWidget.BorderStyle, CPDFWidget.CheckStyle, CPDFWidget.WidgetTypeCPDFAnnotation.AppearanceType, CPDFAnnotation.BorderEffectIntensity, CPDFAnnotation.CPDFBorderEffectType, CPDFAnnotation.MarkState, CPDFAnnotation.MediaSourceType, CPDFAnnotation.ReviewState, CPDFAnnotation.Typeindex| 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, updateApaddToPage, 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, updateApWithImagepublic 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.FontNameHelpercolor - Text color.CPDFTextAttribute.FontNameHelperpublic boolean updateApWithImage(java.lang.String imagePath,
java.lang.String smaskPath,
CPDFImageScaleType imageScaleType)
imagePath - Original image path, image format must bejpeg, jpgsmaskPath - Mask path, image format must bejpeg, jpgimageScaleType - The zoom rule for filling the image into the form, more: CPDFImageScaleTypepublic boolean updateApWithBitmap(android.graphics.Bitmap bitmap,
CPDFImageScaleType imageScaleType)
bitmap - Image.imageScaleType - The zoom rule for filling the image into the form, more: CPDFImageScaleTypepublic 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 CPDFAnnotationpublic void applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr)
applyAnnotationAttr in class CPDFAnnotationpublic boolean updateApWithBitmap(android.graphics.Bitmap bitmap)
updateApWithBitmap in class CPDFAnnotationbitmap - Image.public boolean signWithName()
public boolean resetForm()
resetForm in class CPDFWidgetpublic boolean updateApWithDigitalSigConfig(CPDFDigitalSigConfig config)
config - Config data of the new AP.public CPDFSignature getSignature(CPDFDocument document)
document - CPDFDocumentpublic boolean checkSignatureToWidget(CPDFSignature signature)
signature - Signature