PTFreeHandCreate

@interface PTFreeHandCreate : PTCreateToolBase

Creates FreeHand (Ink) annotations.

  • Removes the most recently added stroke.

    Declaration

    Objective-C

    - (void)undoStroke;

    Swift

    func undoStroke()
  • Restores a stroke removed with undoStroke.

    Declaration

    Objective-C

    - (void)redoStroke;

    Swift

    func redoStroke()
  • Declaration

    Objective-C

    - (BOOL)canUndoStroke;

    Swift

    func canUndoStroke() -> Bool

    Return Value

    Returns YES if there are strikes than can be removed via undoStroke.

  • Declaration

    Objective-C

    - (BOOL)canRedoStroke;

    Swift

    func canRedoStroke() -> Bool

    Return Value

    Returns YES if there are strikes than can be restoried via redoStroke.

  • Adds the freehand annotation to the document. Used when multistrokeMode is set to YES.

    Declaration

    Objective-C

    - (void)commitAnnotation;

    Swift

    func commitAnnotation()
  • Set to YES if the annotation should include multiple strokes. Call commitAnnotation push the annotation back into the PDF.

    Declaration

    Objective-C

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

    Swift

    var multistrokeMode: Bool { get set }
  • Set to YES if the annotation was started by drawing with a stylus.

    Declaration

    Objective-C

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

    Swift

    var pencilMode: Bool { get set }
  • An object that conforms to the PTFreeHandCreateDelegate protocol.

    Declaration

    Objective-C

    @property (readwrite, nonatomic, nullable) id<PTFreeHandCreateDelegate> delegate;

    Swift

    weak var delegate: PTFreeHandCreateDelegate? { get set }