Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed Aug 15, 2018 1:48 pm

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

iaven
 
Posts: 4
Joined: Tue Jan 16, 2018 8:54 am

Thu Aug 16, 2018 7:53 am

Hello Iaven,

Thanks for your inquiry.
I did notice there is a problem when reading the location of the vertexes of polygon annotation. I already logged it into our bug tracking system for investigating and fixing, once there is any update, I will let you know. Sorry for the inconvenience caused.

Thanks and Regards,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Wed Oct 23, 2019 3:40 am

Hello,

Thanks for your patience.
Glad to tell that we just released Spire.PDF Pack(Hot Fix) Version:5.10.8 which fixed the reported issue, welcome to download it and refer to the following sample code to test your scenario.
Website link: https://www.e-iceblue.com/Download/download-pdf-for-net-now.html
Nuget link: https://www.nuget.org/packages/Spire.PDF/5.10.8
Code: Select all
 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;
     }
 }


Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.PDF