PSPDFSignatureViewController


@interface PSPDFSignatureViewController
    : PSPDFBaseViewController <PSPDFStyleable>

Allows adding signatures or drawings as ink annotations.

  • Lines (arrays of boxed PSPDFPoints) of the drawView. - note: Lines are in view coordinate space. To save them into PDF, first convert them to PDF coordinates - see: PSPDFConvertViewLinesToPDFLines for converting the points.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSArray<NSArray<NSValue *> *> *_Nonnull lines;

    Swift

    var lines: [[NSValue]] { get }
  • Enable natural drawing.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) 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 (readwrite, copy, nonatomic) NSArray<UIColor *> *_Nonnull menuColors;

    Swift

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

    Declaration

    Objective-C

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

    Swift

    @IBOutlet weak var delegate: PSPDFSignatureViewControllerDelegate? { get set }
  • 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 }