I am attempting to extract text from an XFA PDF document. If FormType is dynamic I only get the standard PDF error message. If I switch to Standard as directed I get a “Value not in range error”. Anyone else with the same problem?
var doc = new Document(@“some_path”);
doc.Form.Type = FormType.Standard;
var absorber = new TextAbsorber();
doc.Pages.Accept(absorber);
Console.WriteLine(absorber.Text);
Console.Read();