public class

Signature

extends Tool
java.lang.Object
   ↳ com.pdftron.pdf.tools.Tool
     ↳ com.pdftron.pdf.tools.Signature
Known Direct Subclasses

Class Overview

This class is for creating signature annotation.

Summary

[Expand]
Inherited Constants
From class com.pdftron.pdf.tools.Tool
Fields
public static String SIGNATURE_ANNOTATION_ID Custom identifier added to the signature stamp added with this tool.
public static String SIGNATURE_FIELD_ID
[Expand]
Inherited Fields
From class com.pdftron.pdf.tools.Tool
Public Constructors
Signature(PDFViewCtrl ctrl)
Class constructor
Public Methods
void create(String filepath, Annot widget)
int getCreateAnnotType()
Gets what annotation type this tool can create
ToolManager.ToolModeBase getToolMode()
The overload implementation of getToolMode().
void handleAnnotStyleDialogFragmentDismissed(AnnotStyleDialogFragment styleDialog)
void onClose()
The overload implementation of onClose().
void onCreate()
Called after the tool is created by ToolManager.
boolean onQuickMenuClicked(QuickMenuItem menuItem)
The overload implementation of onQuickMenuClicked(QuickMenuItem).
boolean onSingleTapConfirmed(MotionEvent e)
The overload implementation of onSingleTapConfirmed(MotionEvent).
boolean onUp(MotionEvent e, PDFViewCtrl.PriorEventMode priorEventMode)
The overload implementation of onUp(MotionEvent, PDFViewCtrl.PriorEventMode).
void setSignatureFilePath(String signatureFilePath)
Sets the exact path to signature file, if this is set, when clicking on a target, the specified signature will be created.
void setTargetPoint(PointF pagePoint, int page)
void setTargetPoint(PointF point)
Sets the target point.
void setupAnnotProperty(AnnotStyle annotStyle)
Setup annotation properties.
void showSignaturePickerDialog(OnCreateSignatureListener createListener, OnDialogDismissListener dismissListener)
[Expand]
Inherited Methods
From class com.pdftron.pdf.tools.Tool
From class java.lang.Object
From interface com.pdftron.pdf.tools.ToolManager.Tool

Fields

public static String SIGNATURE_ANNOTATION_ID

Custom identifier added to the signature stamp added with this tool.

public static String SIGNATURE_FIELD_ID

Public Constructors

public Signature (PDFViewCtrl ctrl)

Class constructor

Public Methods

public void create (String filepath, Annot widget)

public int getCreateAnnotType ()

Gets what annotation type this tool can create

Returns
  • annot type for annotation creation tool, or unknown for non-creation tool.

public ToolManager.ToolModeBase getToolMode ()

The overload implementation of getToolMode().

Returns
  • the mode/identifier of this tool.

public void handleAnnotStyleDialogFragmentDismissed (AnnotStyleDialogFragment styleDialog)

public void onClose ()

The overload implementation of onClose().

public void onCreate ()

Called after the tool is created by ToolManager.

public boolean onQuickMenuClicked (QuickMenuItem menuItem)

The overload implementation of onQuickMenuClicked(QuickMenuItem).

Parameters
menuItem The clicked menu item.
Returns
  • True if handled

public boolean onSingleTapConfirmed (MotionEvent e)

The overload implementation of onSingleTapConfirmed(MotionEvent).

public boolean onUp (MotionEvent e, PDFViewCtrl.PriorEventMode priorEventMode)

The overload implementation of onUp(MotionEvent, PDFViewCtrl.PriorEventMode).

public void setSignatureFilePath (String signatureFilePath)

Sets the exact path to signature file, if this is set, when clicking on a target, the specified signature will be created.

Parameters
signatureFilePath the path to the signature file

public void setTargetPoint (PointF pagePoint, int page)

public void setTargetPoint (PointF point)

Sets the target point.

Parameters
point The target point

public void setupAnnotProperty (AnnotStyle annotStyle)

Setup annotation properties.

public void showSignaturePickerDialog (OnCreateSignatureListener createListener, OnDialogDismissListener dismissListener)