CPDFPolygonAnnotation Class Reference

Inherits from CPDFAnnotation : NSObject
Declared in CPDFPolygonAnnotation.h

Overview

A PDFAnnotationLine object displays a polygon 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.

  savePoints

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

@property (nonatomic, assign) 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

CPDFPolygonAnnotation.h

  interiorOpacity

Method to get / set the opacity used to fill the ornament at the ends of the line.

@property (nonatomic, assign) CGFloat interiorOpacity

Discussion

Method to get / set the opacity used to fill the ornament at the ends of the line.

The ornament at the end of a line is optional (for more information, see the Adobe PDF Specification 1.4).

Declared In

CPDFPolygonAnnotation.h

  interiorColor

Method to get / set the color used to fill the ornament at the ends of the line.

@property (nonatomic, strong) CPDFKitPlatformColor *interiorColor

Discussion

Method to get / set the color used to fill the ornament at the ends of the line.

The ornament at the end of a line is optional (for more information, see the Adobe PDF Specification 1.4).

Declared In

CPDFPolygonAnnotation.h

– removeInteriorColor

remove interior Color(Set it to transparent, or set SetInteriorColor: to nil)

- (BOOL)removeInteriorColor

Discussion

remove interior Color(Set it to transparent, or set SetInteriorColor: to nil)

Declared In

CPDFPolygonAnnotation.h

  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

CPDFPolygonAnnotation.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

CPDFPolygonAnnotation.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

CPDFPolygonAnnotation.h

  fontColor

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

@property (nonatomic, strong) CPDFKitPlatformColor *fontColor

Discussion

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

Declared In

CPDFPolygonAnnotation.h

  measureInfo

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

@property (nonatomic, strong) CPDFAreaMeasureInfo *measureInfo

Discussion

Method to get the measure info of the 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

CPDFPolygonAnnotation.h

  borderEffect

Method to get / set the used for border Effect drawing the annotation. Cloud border effect for setting annotation

@property (nonatomic, strong) CPDFBorderEffect *borderEffect

Discussion

Method to get / set the used for border Effect drawing the annotation. Cloud border effect for setting annotation

Declared In

CPDFPolygonAnnotation.h

  polygonEncloseHandler

Method to get / set the used for border Effect drawing the annotation. If true, the parent view handles the vertices enclosed event; if false, the polygon savePoints Spot Encirclement Area itself handles the event Note: This property is for configuration purposes and will not affect the internal implementation of the SDK.

@property (nonatomic, readwrite) BOOL polygonEncloseHandler

Discussion

Method to get / set the used for border Effect drawing the annotation. If true, the parent view handles the vertices enclosed event; if false, the polygon savePoints Spot Encirclement Area itself handles the event Note: This property is for configuration purposes and will not affect the internal implementation of the SDK.

Declared In

CPDFPolygonAnnotation.h