I need to both analyze and generate PDF annotations based on FDF exports. I'd much prefer working with XFDF data and standard XML technology, but annotations are not exportable as XFDF by Foxit Reader, which happens to be the most convenient tool for the specific PDF marking task.
Is there anything that can convert between FDF and XFDF? I didn't see any functionality related to XFDF in the iText documentation.
I wrote a little PostScript program I called fdf2xfdf that does just enough so that I can work with it. PostScript isn't precisely the nicest language to work with, but it does an excellent job at parsing the FDF out of the box.