Getting Text and Location of annotations of a page
....
var page = pdfDocument.Pages[pagn];
....
string pdfAnnotationMsg = "Test Annotation 123";
PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(new RectangleF((float)x, (pageHeight * 1.325f) - (float)y - VertOff2, 5, 5), pdfAnnotationMsg);
popupAnnotation.Border.Width = 1;
popupAnnotation.Open = false;
popupAnnotation.Border.HorizontalRadius = 1;
popupAnnotation.Border.VerticalRadius = 1;
popupAnnotation.Icon = PdfPopupIcon.Comment;
page.Annotations.Add(popupAnnotation);
PdfLoadedAnnotationCollection annotationCollection = pdfDocument.Pages[0].Annotations;
annotationCollection[0].Text
"A first chance exception of type 'System.NullReferenceException' occurred in Syncfusion.Pdf.WinRT.DLL"

Hi Ric ,
Thank you for using syncfusion product .
We are unable to reproduce the issue “Getting null reference exception when load the annotation text” .We have attached the sample which we have tried to reproduce the exception in below link :
https://www.syncfusion.com/downloads/support/forum/118923/PdfAnnotationSample1637495340.zip
Please modify the sample or provide us the input document which you have tried to reproduce this issue . It will help us to proceed further in this issue .
And we are able to reproduce the issue “Getting empty bounds when load the annotation location” . We will update the complete details regarding this issue on 28th April ,2015.
Thanks ,
Abirami.
Hi Ric,
We are happy to know that the issue fixed in your side.
Please let us know if you need further assistance.
Thanks,
Abirami.
- 4 Replies
- 2 Participants
-
RS Ric Silva
- Apr 23, 2015 03:38 PM UTC
- Apr 27, 2015 01:20 PM UTC