PSPDFSignatureViewController


@interface PSPDFSignatureViewController
    : PSPDFBaseViewController <PSPDFStyleable>

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.

  • Keeps the drawing area aspect ration regardless of the interface orientation. Setting this to NO might produce unexpected results if the view bounds change. Defaults to YES, except if the view is presented inside a form sheet on iPad.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var drawView: PSPDFDrawView { 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 (readonly, nonatomic, nullable) PSPDFSigner *signer;

    Swift

    var signer: PSPDFSigner? { get }
  • Customize the created color menu buttons.

    Declaration

    Objective-C

    - (nonnull PSPDFColorButton *)colorButtonForColor:(nonnull UIColor *)color;

    Swift

    func colorButton(for color: UIColor) -> PSPDFColorButton
  • 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)