java.lang.Object |
↳ |
com.pdftron.pdf.utils.StampManager |
Class Overview
Singleton class to manage stamp signatures.
Summary
Public Methods |
void
|
consumeDelayRemoveSignature(Context context)
|
|
createSignature(Context context, String signatureFileName, String svgString)
|
Page
|
createSignature(String signatureFilename, RectF signatureBBox, LinkedList<LinkedList<PointF>> paths, int strokeColor, float strokeThickness)
|
String
|
createSignatureFromImage(Context context, Uri imageUri, int imageRotation)
|
boolean
|
createTypedSignature(String signatureFilename, TextView editText, int textColor, String pdfFontName)
|
boolean
|
createVariableThicknessSignature(String signatureFilename, RectF signatureBBox, List<double[]> strokes, int strokeColor, float strokeThickness)
|
void
|
deleteDefaultSignature(Context context)
|
void
|
deleteSignature(Context context, String filepath)
|
Page
|
getDefaultSignature(Context context)
|
String
|
getDefaultSignatureFile()
|
static
StampManager
|
getInstance()
|
Bitmap
|
getSavedSignatureBitmap(Context context, File signatureFile)
|
File
|
getSavedSignatureFolder(Context context)
|
File
|
getSavedSignatureJpegFile(Context context, File signatureFile)
|
File
|
getSavedSignatureJpgFolder(Context context)
|
File[]
|
getSavedSignatures(Context context)
|
Page
|
getSignature(String signatureFilename)
|
String
|
getSignatureFilePath(Context context)
|
static
|
getSignaturePreview(Context context, String stampId)
|
boolean
|
hasDefaultSignature(Context context)
|
void
|
savedSignatureCreated()
|
void
|
savedSignatureDeleted()
|
void
|
setDefaultSignatureFile(String pdfFilename)
Sets the default signature.
|
void
|
setDelayRemoveSignature(String filePath)
|
void
|
setSignatureListener(StampManager.SignatureListener listener)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Methods
public
void
consumeDelayRemoveSignature
(Context context)
public
createSignature
(Context context, String signatureFileName, String svgString)
public
Page
createSignature
(String signatureFilename, RectF signatureBBox, LinkedList<LinkedList<PointF>> paths, int strokeColor, float strokeThickness)
public
String
createSignatureFromImage
(Context context, Uri imageUri, int imageRotation)
public
boolean
createTypedSignature
(String signatureFilename, TextView editText, int textColor, String pdfFontName)
public
boolean
createVariableThicknessSignature
(String signatureFilename, RectF signatureBBox, List<double[]> strokes, int strokeColor, float strokeThickness)
public
void
deleteDefaultSignature
(Context context)
public
void
deleteSignature
(Context context, String filepath)
public
Page
getDefaultSignature
(Context context)
public
String
getDefaultSignatureFile
()
Returns
- The default signature file name
public
Bitmap
getSavedSignatureBitmap
(Context context, File signatureFile)
public
File
getSavedSignatureFolder
(Context context)
public
File
getSavedSignatureJpegFile
(Context context, File signatureFile)
public
File
getSavedSignatureJpgFolder
(Context context)
public
File[]
getSavedSignatures
(Context context)
public
Page
getSignature
(String signatureFilename)
public
String
getSignatureFilePath
(Context context)
public
static
getSignaturePreview
(Context context, String stampId)
public
boolean
hasDefaultSignature
(Context context)
public
void
savedSignatureCreated
()
public
void
savedSignatureDeleted
()
public
void
setDefaultSignatureFile
(String pdfFilename)
Sets the default signature.
Parameters
pdfFilename |
The file name of PDF containing the signature image
|
public
void
setDelayRemoveSignature
(String filePath)