PTStampManager


@interface PTStampManager : NSObject

Creates signatures and manages saved ones.

  • Used to determine if there is a saved signature.

    Declaration

    Objective-C

    - (BOOL)HasDefaultSignature;

    Swift

    func hasDefaultSignature() -> Bool

    Return Value

    YES if there is a saved signature

  • Gets the saved signature.

    Declaration

    Objective-C

    - (nullable PTPDFDoc *)GetDefaultSignature;

    Swift

    func getDefaultSignature() -> PTPDFDoc?

    Return Value

    the saved signature.

  • Deletes the saved signature

    Declaration

    Objective-C

    - (void)DeleteDefaultSignatureFile;

    Swift

    func deleteDefaultSignatureFile()
  • Creates a new saved signature.

    Declaration

    Objective-C

    - (nonnull PTPDFDoc *)CreateSignature:(nonnull NSMutableArray *)points
                          withStrokeColor:(nonnull UIColor *)strokeColor
                      withStrokeThickness:(CGFloat)thickness
                               withinRect:(CGRect)rect
                              makeDefault:(BOOL)asDefault;

    Swift

    func createSignature(_ points: NSMutableArray, withStroke strokeColor: UIColor, withStrokeThickness thickness: CGFloat, within rect: CGRect, makeDefault asDefault: Bool) -> PTPDFDoc

    Parameters

    points

    A set of FreeHand points.

    strokeColor

    The color of the freehand stroke.

    thickness

    The thickness of the freehand stroke.

    rect

    The bounding rect of the points.

    Return Value

    asDefault YES if the signature shold be saved as the default signature.