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

Free Support Forum - aspose.com

Pdf annotation information not extracted properly

We are not able to extract the annotation text/content from the attached pdf sample using Aspose.PDF api.
code snippet
var filePath = “/sample.pdf”;
var pdfDocument = new Document(filePath, “”);
foreach (var page in pdfDocument.Pages)
{
if (page.Annotations != null)
{
foreach (var anno in page.Annotations)
{
/the anno.Contents is null for the sample/
if (!string.IsNullOrWhiteSpace(anno.Contents))
{
//use annotation contents
}
}
}
}

Sample.pdf (1.2 MB)

@Balmukunda

We have logged this problem in our issue tracking system as PDFNET-53419. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.