Hi Iain,

Thanks for your response. Can you clarify what you meant for FDF Import with 
Adobe? Did you imply usign the FDF Toolkit that Adobe provides? Sorry if this 
is 
a dumb question but I am fairly new to the PDF world.

Thanks
Ravi



________________________________
From: Iain Clapham <[email protected]>
To: [email protected]
Sent: Wed, April 13, 2011 4:35:26 PM
Subject: Re: Converting FDF to XFDF

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