PSPDFLineAnnotation

Objective-C


@interface PSPDFLineAnnotation : PSPDFAbstractLineAnnotation <PSPDFOverridable>

Swift

class LineAnnotation : AbstractLineAnnotation, Overridable

PDF Line annotation.

  • Designated initializer.

    Declaration

    Objective-C

    - (nonnull 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 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 CGPoint point2;

    Swift

    var point2: CGPoint { get set }