PSPDFStampViewController
Objective-C
@interface PSPDFStampViewController
: PSPDFAnnotationGridViewController <
PSPDFAnnotationGridViewControllerDataSource,
PSPDFTextStampViewControllerDelegate, PSPDFOverridable>
Swift
class StampViewController : AnnotationGridViewController, AnnotationGridViewControllerDataSource, TextStampViewControllerDelegate, Overridable
Allows adding signatures or drawings as ink annotations.
-
The default available set of stamp annotations. Thread safe. Setting
nil
will restore the default set of stamp annotations.Declaration
Objective-C
@property (class, null_resettable) NSArray<PSPDFStampAnnotation *> *defaultStampAnnotations;
Swift
class var defaultStampAnnotations: [PSPDFStampAnnotation]! { get set }
-
Available stamp types. Set before showing controller.
Declaration
Objective-C
@property (nonatomic, copy) NSArray<PSPDFStampAnnotation *> *_Nonnull stamps;
Swift
var stamps: [PSPDFStampAnnotation] { get set }
-
Adds a button that forwards to an interface (
PSPDFTextStampViewController
) where custom stamps can be created. Defaults to YES.Warning
Changing this will reset thestamps
array.Declaration
Objective-C
@property (nonatomic) BOOL customStampEnabled;
Swift
var customStampEnabled: Bool { get set }
-
Adds date stamps. They are recreated every time the
PSPDFStampViewController
is created to present the current date and thus not a part of thedefaultStampAnnotations
array. Defaults to YES.Warning
Changing this will reset thestamps
array.Declaration
Objective-C
@property (nonatomic) BOOL dateStampsEnabled;
Swift
var dateStampsEnabled: Bool { get set }
-
Creates the default date fonts - Revised and Rejected.
Declaration
Objective-C
- (nonnull NSArray<PSPDFStampAnnotation *> *)defaultDateStamps;
Swift
func defaultDateStamps() -> [PSPDFStampAnnotation]