XFDF support when filling a form

I have added support for XFDF format, in order to be able to fill forms with cyrillic. In general I have duplicated the implementation of the FDF generator extracting common code to a superclass. 
I believe this may be of some interest to you.