Add a function to get form type from cpp document class
We have a use case where we need to figure out if a document contains an XFA form.
Currently we are running pdfinfo
and parsing the output.
Instead it would be nice if the cpp document
class had the following function:
FormType form_type() const;
where FormType
is the same as Catalog::FormType
:
enum FormType
{
NoForm,
AcroForm,
XfaForm
};