We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PDF annotations reading issue - showing max 4 annotations even if it has more

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);
}
}

Hi Subrat,

Thanks for considering Aspose. Aspose.Pdf evaluation version has two limitations, evaluation watermark and at most four elements of any collection can be viewed. Please make a request for 30 days temporary license to evaluate our product without any limitation. It will resolve the issue.


Please feel free to contact us for any further assistance.

Best Regards,