PTDigitalSignatureTool


@interface PTDigitalSignatureTool
    : PTTool <PTDigSigViewControllerDelegate,
              PTFloatingSigViewControllerDelegate, PTSignaturesManagerDelegate,
              UIAdaptivePresentationControllerDelegate>

Handles creation of signatures and digitally signing documents.

  • The file name of the selected signature.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *selectedSignature;

    Swift

    var selectedSignature: String? { get set }
  • Whether the controller shows a list of saved signatures. The default value of this property is YES.

    Declaration

    Objective-C

    @property (nonatomic) BOOL showsSavedSignatures;

    Swift

    var showsSavedSignatures: Bool { get set }
  • Whether the controller should create a new signature. YES if there is no saved signature. No if there is saved signature. The default value of this property is YES.

    Declaration

    Objective-C

    @property (nonatomic) BOOL shouldCreateNewSignature;

    Swift

    var shouldCreateNewSignature: Bool { get set }
  • The image of the selected signature of the controller.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIImage *pickedSignatureImage;

    Swift

    var pickedSignatureImage: UIImage? { get set }
  • An object that conforms to the PTDigitalSignatureToolDelegate protocol.

    Declaration

    Objective-C

    @property (nonatomic, weak, nullable) id delegate;

    Swift

    weak var delegate: AnyObject? { get set }
  • Show saved signatures.

    Declaration

    Objective-C

    - (void)showSignatureList;

    Swift

    func showSignatureList()
  • Show saved signatures as a popover.

    Declaration

    Objective-C

    - (void)showSignatureList:(nonnull UIView *)view
                 onSourceView:(nonnull UIView *)sourceView;

    Swift

    func showSignatureList(_ view: UIView, onSourceView sourceView: UIView)

    Parameters

    view

    The view in which to anchor the popover.

    sourceView

    The sourceView of the UIPopoverPresentationController.

  • Show saved signatures as a popover.

    Declaration

    Objective-C

    - (void)showSignatureListForRect:(CGRect)sourceRect
                        onSourceView:(nonnull UIView *)sourceView;

    Swift

    func showSignatureList(for sourceRect: CGRect, onSourceView sourceView: UIView)

    Parameters

    sourceRect

    The frame of the view in which to anchor the popover.

    sourceView

    The sourceView of the UIPopoverPresentationController.

  • Add signature to the selected widget.

    Declaration

    Objective-C

    - (void)addSignatureToWidget:(nonnull PTPDFDoc *)doc;

    Swift

    func addSignature(toWidget doc: PTPDFDoc)

    Parameters

    doc

    The PTPDFDoc object used to sign the widget.

  • Stamp the signature.

    Declaration

    Objective-C

    - (void)addStamp:(nonnull PTPDFDoc *)signatureDoc;

    Swift

    func addStamp(_ signatureDoc: PTPDFDoc)

    Parameters

    signatureDoc

    The PTPDFDoc object used to sign.