Reading pdf fields dynamically

Hi

i am trying to upload pdf and then reading its field dynamically.

but every time i am getting “topmostsubform[0].page1[0].p1-cb1[0]”.

here is the code :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Aspose.Pdf;
using Aspose.Pdf.InteractiveFeatures.Forms;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{


Document pdfDocument = new Document(Server.MapPath(“f8966.pdf”));















List listFields = new List();



foreach (Field formField in pdfDocument.Form)

{

getField(formField, ref listFields);

}



}

public void getField(Field field, ref List listFields)

{



if (field.IsGroup)

{

foreach (Field childField in field)

{

getField(childField, ref listFields);

}

}

else

{

listFields.Add(field.FullName);

}



}



}







Hi Manoj,


Thanks for your inquiry. We will appreciate if you please share your source PDF document, so we will test the scenario and will provide you more information accordingly.

Best Regards,