public class

StampManager

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

Class Overview

Singleton class to manage stamp signatures.

Summary

Public Methods
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)
Page createVariableThicknessSignature(String signatureFilename, RectF signatureBBox, List<double[]> strokes, int strokeColor, float strokeThickness)
void deleteDefaultSignature(Context context)
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)
boolean hasDefaultSignature(Context context)
void setDefaultSignatureFile(String pdfFilename)
Sets the default signature.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

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)

public Page createVariableThicknessSignature (String signatureFilename, RectF signatureBBox, List<double[]> strokes, int strokeColor, float strokeThickness)

public void deleteDefaultSignature (Context context)

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 boolean hasDefaultSignature (Context context)

public void setDefaultSignatureFile (String pdfFilename)

Sets the default signature.

Parameters
pdfFilename The file name of PDF containing the signature image