CPDFPolylineAnnotation Class Reference

Inherits from CPDFAnnotation : NSObject
Declared in CPDFPolylineAnnotation.h

Overview

A PDFAnnotationLine object displays a polyline on a page.

The setBorderWidth: method of the CPDFAnnotation class determines the stroke thickness. The setColor: method of the CPDFAnnotation class determines the stroke color.

– setSavePoints:

Method to get / set the all points of the line segment.

- (void)setSavePoints:(NSArray<NSValue*> *)savePoints

Discussion

Method to get / set the all points of the line segment.

Page space is a coordinate system with the origin at the lower-left corner of the current page.

Declared In

CPDFPolylineAnnotation.h

– savePoints

- (NSArray<NSValue*> *)savePoints

  isMeasure

Method to determine whether an annotation has measurement properties.

@property (nonatomic, assign, readonly) BOOL isMeasure

Discussion

Method to determine whether an annotation has measurement properties.

Declared In

CPDFPolylineAnnotation.h

  cFont

Method to set the font name used for the annotation’s measure text field.

@property (nonatomic, strong) CPDFFont *cFont

Discussion

Method to set the font name used for the annotation’s measure text field.

Declared In

CPDFPolylineAnnotation.h

  fontSize

Method to get the font size used for the annotation’s measure text field.

@property (nonatomic, assign) CGFloat fontSize

Discussion

Method to get the font size used for the annotation’s measure text field.

Declared In

CPDFPolylineAnnotation.h

  fontColor

Method to get / set the font color used in the measure text field of the annotation.

@property (nonatomic, strong) CPDFKitPlatformColor *fontColor

Discussion

Method to get / set the font color used in the measure text field of the annotation.

Declared In

CPDFPolylineAnnotation.h

  measureInfo

Method to get the measure info of the measure annotation after added to page.

@property (nonatomic, strong) CPDFPerimeterMeasureInfo *measureInfo

Discussion

Method to get the measure info of the measure annotation after added to page.

The measurement properties of a annotation cannot be cleared by setting the measurement properties of the annotation to empty Set MeasureInfo: This information will not be effective until it is added to the page

Declared In

CPDFPolylineAnnotation.h