Hi
I am working on an existing pdf file with a number of line annotations. Does anybody know how can I get the position (x and y) of the ends of those lines?
Thanks
PdfDocument pdf = new PdfDocument("LineAnnotation.pdf");
PdfAnnotation annotation = pdf.Pages[0].AnnotationsWidget[0];
if (annotation is PdfLineAnnotationWidget)
{
PdfLineAnnotationWidget lineAnn = annotation as PdfLineAnnotationWidget;
var location = lineAnn.Location;
}
PdfDocument pdf = new PdfDocument("1372.pdf");
PdfAnnotation annotation = pdf.Page[0].AnnotationsWidget[0];
if(annotation is PdfLineAnnotationWidget)
{
PdfLineAnnotationWidget lineAnn = annotation as PdfLineAnnotationWidget;
var endPoint = lineAnn.EndPoint;
//var startPoint = lineAnn.StartPoint;
}