Hi,
I got an exception( Invalid index: index should be in the range [1..n] where n equals to the pages count) when I fetch the AnnotationIndex of each field in my attached PDF file. Is it possible to help me figure why this happens? Thanks a lot!
I am using Aspose.Total v10.6 for .Net and Visual Studio Professional 2012
Here is my code snippet:
Aspose.Pdf.License pdflicense = new Aspose.Pdf.License();
pdflicense.Embedded = true;
pdflicense.SetLicense(@"Aspose.Total.lic");
Document pdfDocument = new Document(@"c:\Users\2011 Medical.pdf");
foreach (Aspose.Pdf.InteractiveFeatures.Forms.Field fields in pdfDocument.Form) {
System.Console.WriteLine("AnnotationIndex is {0}", fields.AnnotationIndex);
}
System.Console.ReadKey();