PSPDFSignatureViewController

Objective-C


@interface PSPDFSignatureViewController
    : PSPDFBaseViewController <PSPDFStyleable, PSPDFOverridable>

Swift

class SignatureViewController : PDFBaseViewController, Styleable, Overridable

The signature view controller can be used to create ink signatures to add to a document.

These signatures optionally can be used to create a digital signature with a certificate.

  • Enable natural drawing. Defaults to NO. Usually set via PSPDFConfiguration.naturalSignatureDrawingEnabled.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        BOOL naturalDrawingEnabled;

    Swift

    var naturalDrawingEnabled: Bool { get set }
  • Color options for the color picker (limit this to about 3 UIColor instances). Defaults to black, blue and red.

    Declaration

    Objective-C

    @property (nonatomic, copy, readwrite) NSArray<UIColor *> *_Nonnull menuColors;

    Swift

    var menuColors: [UIColor] { get set }
  • Signature controller delegate.

    Declaration

    Objective-C

    @property (nonatomic, weak, readwrite)
        id<PSPDFSignatureViewControllerDelegate> _Nullable delegate;

    Swift

    @IBOutlet weak var delegate: SignatureViewControllerDelegate? { get set }
  • Defines if a signature should be saved. Defaults to PSPDFSignatureSavingStrategySaveIfSelected. Usually set via PSPDFConfiguration.signatureSavingStrategy. Shows a checkbox, when set to PSPDFSignatureSavingStrategySaveIfSelected.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        PSPDFSignatureSavingStrategy savingStrategy;

    Swift

    var savingStrategy: SignatureSavingStrategy { get set }
  • Defines if the certificate picker button should be shown. Defaults to PSPDFSignatureCertificateSelectionModeIfAvailable. Usually set via PSPDFConfiguration.signatureCertificateSelectionMode.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        PSPDFSignatureCertificateSelectionMode certificateSelectionMode;

    Swift

    var certificateSelectionMode: SignatureCertificateSelectionMode { get set }
  • Internally used draw view. Use lines as a shortcut to get the drawn signature lines.

    Use the draw view to access additional drawing data, including biometric values.

    Declaration

    Objective-C

    @property (nonatomic, readonly) PSPDFDrawView *_Nonnull drawView;

    Swift

    var drawView: DrawView { get }
  • Signer used for digitally signing. If this is set, a digital signature will be created instead of an ink signature.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) PSPDFSigner *signer;

    Swift

    var signer: PSPDFSigner? { get }
  • Called when the cancel button has been tapped.

    Declaration

    Objective-C

    - (void)cancel:(nullable id)sender;

    Swift

    func cancel(_ sender: Any?)
  • Called when the done button has been tapped.

    Declaration

    Objective-C

    - (void)done:(nullable id)sender;

    Swift

    func done(_ sender: Any?)
  • Called when the clear button has been tapped.

    Declaration

    Objective-C

    - (void)clear:(nullable id)sender;

    Swift

    func clear(_ sender: Any?)
  • Called when a color has been tapped.

    Declaration

    Objective-C

    - (void)color:(nonnull PSPDFColorButton *)sender;

    Swift

    func color(_ sender: PSPDFColorButton)