PSPDFStampViewController

Allows adding signatures or drawings as ink annotations.

  • Return default available set of stamp annotations.

    Declaration

    Objective-C

    + (nonnull NSArray<PSPDFStampAnnotation *> *)defaultStampAnnotations;

    Swift

    class func defaultStampAnnotations() -> [PSPDFStampAnnotation]
  • Sets different default annotations. Thread safe. Setting defaultStampAnnotations will restore the default set of stamp annotations.

    Declaration

    Objective-C

    + (void)setDefaultStampAnnotations:
        (nullable NSArray<PSPDFStampAnnotation *> *)defaultStampAnnotations;

    Swift

    class func setDefaultStampAnnotations(_ defaultStampAnnotations: [PSPDFStampAnnotation]?)
  • Available stamp types. Set before showing controller.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic)
        NSArray<PSPDFStampAnnotation *> *_Nonnull stamps;

    Swift

    var stamps: [PSPDFStampAnnotation] { get set }
  • Adds a special stamp that forwards to an interface (PSPDFTextStampViewController) where custom stamps can be created. Defaults to YES. - warning: Changing this will reset the stamps array.

    Declaration

    Objective-C

    @property (assign, readwrite, 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 the defaultStampAnnotations array. Defaults to YES. - warning: Changing this will reset the stamps array.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL dateStampsEnabled;

    Swift

    var dateStampsEnabled: Bool { get set }