AddPolygonAnnotation(IReadOnlyList, PdfAnnotationOptions?) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Adds a polygon annotation: the closed shape through vertices; its rectangle is fitted to them.

public PdfPolygonAnnotation AddPolygonAnnotation(IReadOnlyList<PathPoint> vertices, PdfAnnotationOptions? options = null)

Parameters

vertices
IReadOnlyList<PathPoint>

At least three vertices in default user space.

options
PdfAnnotationOptions

Border and interior colours, width, flags and markup texts; null for a one-point red border.

Returns

PdfPolygonAnnotation
The annotation.

Remarks

ISO 32000-2 §12.5.6.9, Table 181 (PDF 1.5).