public class CPDFSignatureWidget extends CPDFWidget
CPDFWidget.BorderStyle, CPDFWidget.CheckStyle, CPDFWidget.WidgetType
CPDFAnnotation.AppearanceType, CPDFAnnotation.Type
annotPtr, apRotation, pdfPage
Modifier and Type | Method and Description |
---|---|
boolean |
isSigned()
Whether signature form is signed.
|
boolean |
resetForm()
Resets forms.
|
boolean |
signWithName()
Sets Signature form as signed.
|
boolean |
updateApWithBitmap(int[] pixels,
int width,
int height)
Updates form appearance by Bitmap.
|
boolean |
updateApWithBitmap(int[] pixels,
int width,
int height,
CPDFImageScaleType imageScaleType)
Updates form appearance by Bitmap.
|
boolean |
updateApWithImage(java.lang.String imagePath,
java.lang.String smaskPath,
CPDFImageScaleType imageScaleType)
Updates form appearance by image.
|
boolean |
updateApWithInk(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, getCheckColor, getCheckStyle, getFieldFlag, getFieldName, getFieldType, getFillAlpha, getFillColor, getRect, getWidgetType, isReadOnly, setBorderColor, setBorderStyles, setBorderWidth, setCheckColor, setCheckStyle, setFieldFlag, setFieldName, setFieldType, setFillAlpha, setFillColor, setReadOnly, setRect, updateAp, updateAp
addToPage, clearFilledRGBColor, clearFilledTransparency, close, getAppearanceByPixel, getApRotation, getBgRGBColor, getBorderRGBColor, getBorderStyle, getContent, getCreationDate, getFilledRGBColor, getFilledTransparency, getFlags, getName, getOverLayText, getRecentlyModifyDate, getRGBColor, getTitle, getTransparency, getType, hasAp, isAllowCorrectAnnotationAp, isHidden, isLocked, isValid, removeAp, removeFromPage, setAllowCorrectAnnotationAp, setBgRGBColor, setBorderRGBColor, setBorderStyle, setContent, setCreationDate, setFilledRGBColor, setFilledTransparency, setFlags, setHidden, setLocked, setName, setOverLayText, setRecentlyModifyDate, setRGBColor, setTitle, setTransparency, 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 textcolor
- Text color.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(int[] pixels, int width, int height, CPDFImageScaleType imageScaleType)
pixels
- Image pixels.width
- Image width.height
- Image height.imageScaleType
- The zoom rule for filling the image into the form, more: CPDFImageScaleType
public boolean updateApWithInk(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 boolean updateApWithBitmap(int[] pixels, int width, int height)
updateApWithBitmap
in class CPDFAnnotation
pixels
- Image pixels.width
- Image width.height
- Image height.public boolean signWithName()
public boolean resetForm()
resetForm
in class CPDFWidget