Hi Will,
On our further analysis ,we can able find the document contains XFAForm or not in sample level using below workaround.
Please refer the below code snippet,
private bool IsXFADocument(string filePath)
{
bool isXfa = false;
PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(filePath);
//Get the loaded XFA form.
PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm;
int count = loadedForm.Fields.Count;
loadedDocument.Close();
//If the loaded field count is greater than zero then its a XFA document.
if (count > 0)
isXfa = true;
return isXfa;
} |
Kindly try the above solution in your end and Let us know, if you need any further information in this.
Regards,
Sowmiya Loganathan