I\'m using pdftk to fill in a PDF form with an XFDF file. However, for this project I do not know in advance what fields will be present, so I need to analyse the PDF itself
Easy! You are using pdftk already
# pdftk input.pdf dump_data_fields
It will output Field name, field type, some of it's properties (like what are the options for dropdown list or text alignment) and even a Tooltip text (which I found to be extremely useful)
The only thing I'm missing is field coordinates...