PSPDFPolygonAnnotation
@interface PSPDFPolygonAnnotation : PSPDFAbstractLineAnnotation
Polygon annotations (PDF 1.5) display closed polygons on the page. Such polygons may have any number of vertices connected by straight lines. Polyline annotations (PDF 1.5) are similar to polygons, except that the first and last vertex are not implicitly connected.
Note
SeePSPDFAbstractLineAnnotation
for details how to use and initialize.
-
Designated initializer.
Declaration
Objective-C
- (nonnull instancetype)initWithPoints: (nonnull NSArray<__kindof NSValue *> *)points intentType:(PSPDFPolygonAnnotationIntent)intentType;
Swift
init(points: [NSValue], intentType: PSPDFPolygonAnnotationIntent)
-
Defines the annotation intent. (Optional; PDF 1.6). Defaults to
PSPDFPolygonAnnotationIntentNone
.Declaration
Objective-C
@property (assign, readwrite, nonatomic) PSPDFPolygonAnnotationIntent intentType;
Swift
var intentType: PSPDFPolygonAnnotationIntent { get set }