Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145735 | Jul 4,2019 06:26 PM UTC | Mar 10,2021 03:12 PM UTC | Xamarin.Forms | 4 |
![]() |
Tags: PDF |
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;
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.