ParserParseForm Method
Parses the document form.

Namespace: GroupDocs.Parser
Assembly: GroupDocs.Parser (in GroupDocs.Parser.dll) Version: 20.8.0
Syntax
public DocumentData ParseForm()

Return Value

Type: DocumentData
An instance of DocumentData class that contains the extracted data; null if parsing by template isn't supported.
Remarks
Examples

The following example shows how to parse a form of the document:

C#
// Create an instance of Parser class
using (Parser parser = new Parser(filePath))
{
    // Extract data from PDF document
    DocumentData data = parser.ParseForm();
    // Iterate over extracted data
    for (int i = 0; i<data.Count; i++)
    {
        Console.Write(data[i].Name + ": ");
        PageTextArea area = data[i].PageArea as PageTextArea;
        Console.WriteLine(area == null ? "Not a template field" : area.Text);
    }
}
See Also