ParseForm

Parser.ParseForm method

Parses the document form.

public DocumentData ParseForm()

Return Value

An instance of DocumentData class that contains the extracted data; null if parsing by template isn’t supported.

Remarks

Learn more:

Examples

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

// 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