Hi,

My requirement is to covert the .DOC file to .PDF with the proper formating using java or in Web Dynpro Java.

I have already tried to POI to reading the doc and iTEXT for converting to PDF but the problem is this scenario doesnot maintain any formating :(, we nee to maintain the formating.

I tried to do the same us9ng ABAP as well but bad luck.

Can anyone help me in solving this issue,this is on highest priority.

Thanks in advance.

Pooja

Well, are you even attempting to read the formatting? Or are you just trying to read the text? See HWPFDocument and its getStyleSheet method. All of the formatting is contained in the style sheets. The text is just the, well, text.