Ravi,

An FDF file will only contain annotations. That is all the information you need.

All you have to do is put it into an XML format.

No need to use PDFBox - it is not very clever with annotations.

A fairly simply JAVA app would suffice.

Try FDF import with Adobe then export as XFDF and you will see what I mean.

Cheers --- Iain

varma samanthapudi wrote:
Hi,
I am a newbie in the world of PDF/FDF and need some guidance. I am trying to convert FDF file (that primarily consist of annotations) to XFDF as part of an upgrade process where the application only supports XFDF. Are there any tools available to do the conversion or would I have to come up with the utility. I downloaded PDFBox with the hope that I would parse the FDF files and then read through each annotation and then create the XFDF file with the appropriate XFDF elements. I was able to load the FDF document but I am not sure how to retrieve the dictionary object after I have the FDFDocument/COSDocument. When I do make a getObjects() call on the COSDocument and print them I get the object number and generating number (e.g. COSObject 36, 0). How do I retrieve the annots/annot objects within these objects? When I do a getDictionaryObject("Annots"), I get a null value back? I am kind of lost here so any help would be appreciated. I would need to know how to get the COSDictionary object as that seems to be the key to use FDF specific classes.
I am attaching a sample FDF.
Thanks,
Ravi

--
Cheers --- Iain

Reply via email to