Maximize productivity with
30% off* for a limited time
using BOOSTDEV30.
Includes 3- and 5-packs.
*Some exclusions may apply.New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.
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;
} |