public class

StampManager

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.utils.StampManager

Class Overview

Singleton class to manage stamp signatures.

Summary

Nested Classes
interface StampManager.SignatureListener  
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

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 static StampManager getInstance ()

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)

public void setSignatureListener (StampManager.SignatureListener listener)