PSPDFLineAnnotation


@interface PSPDFLineAnnotation : PSPDFAbstractLineAnnotation

PDF Line annotation.

  • Designated initializer.

    Declaration

    Objective-C

    - (instancetype)initWithPoint1:(CGPoint)point1 point2:(CGPoint)point2;

    Swift

    init!(point1: CGPoint, point2: CGPoint)
  • Starting point. - note: After changing the point, call recalculateBoundingBox to update the bounds.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGPoint point1;

    Swift

    var point1: CGPoint { get set }
  • End point. - note: After changing the point, call recalculateBoundingBox to update the bounds.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGPoint point2;

    Swift

    var point2: CGPoint { get set }