Hi ,
I am trying to read all annotations from a PDF file using Aspose trial version .
Even if the PDF has more than 4 annotations , the code out put shows max 4 annotations .
The Annotations.Count gives correct number . But the “for loops” gives only 4 annotation .
Is it because of trail version or am I missing anything here .
I have attached the sample PDF and code output for your reference .
Please advise .
PDF.Document pfdoc = new Document(@“C:\Users\snayakx070044\Desktop\ARKTEST\inputpdf.pdf”);
foreach (PDF.Page p in pfdoc.Pages)
{
Console.WriteLine(p.Annotations.Count); //gives 9 links
foreach (Annotation annotation in p.Annotations) //loop gives only 4 links
{
Console.WriteLine(annotation.AnnotationType);
}
}