PTStampManager
@interface PTStampManager : NSObject
Creates signatures and manages saved ones.
-
Used to determine if there is a saved signature.
Declaration
Objective-C
- (BOOL)HasDefaultSignature;
Return Value
YES
if there is a saved signature -
Gets the saved signature.
Declaration
Objective-C
- (nullable PTPDFDoc *)GetDefaultSignature;
Return Value
the saved signature.
-
Deletes the saved signature
Declaration
Objective-C
- (void)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;
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.