Hi,
How can I read all information from a pdf file into the view with AcroFields using iTextSharp when you click a button.
The properties are the fields in the pdf file.
I have the following code
Model
namespace AcroFields
{
class PdfFields
{
public string TextBox1 { get; set; }
public string DropDown1 { get; set; }
public string CheckBox1 { get; set; }
}
public PdfFields()
{
}
}
Controller
public ActionResult PdfRead()
{
string pdfFile = @"C:\Users\Test.pdf";
using (var pfdReader = new PdfReader(pdfFile))
{
var formField = pfdReader.AcroFields;
}
Thanks