pdfExtractXFAData

Extract XFA form data.
char *pdfExtractXFAData(PDFHandle pdf, int *length)
This function extracts the raw XFA (XML Forms Architecture) form data from the PDF file.

If there is no XFA form this function returns NULL.

The string is returned, and *length is filled in with the string length. The caller is responsible for freeing the string with the pdfFreeMemory function.

C:
char *buf; int length; if ((buf = pdfExtractXFAData(pdf, &length))) { /* process the XFA data */ ... pdfFreeMemory(buf); } else { /* there is no XFA data in this PDF file */ }