public static void Run()
{
// ExStart:GetValuesFromAllFields
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_AsposePdf_Forms();
// Open document
Document pdfDocument = new Document(dataDir + "GetValuesFromAllFields.pdf");
// Get values from all fields
foreach (Field formField in pdfDocument.Form)
{
Console.WriteLine("Field Name : {0} ", formField.PartialName);
Console.WriteLine("Value : {0} ", formField.Value);
}
// ExEnd:GetValuesFromAllFields
}
}