Hi
I an trying to read the location (x,y coordinate) of the vertexes of polygon annotation on a page. I know how to do it for line annotation. Is there anything similar for polygon?
Thanks
PdfDocument pdf = new PdfDocument(@"sample.pdf");
PdfAnnotationCollection annotationCollection = pdf.Pages[0].AnnotationsWidget;
foreach (PdfAnnotation annotation in annotationCollection)
{
if (annotation is PdfPolygonAnnotationWidget)
{
PdfPolygonAnnotationWidget polygonAnnotation = annotation as PdfPolygonAnnotationWidget;
PointF[] pointArray = polygonAnnotation.Vertices;
}
}