Extract format of file with data

Hi,
I am planning to extract data of pdf file , is there a way, I can get format of pdf along with text, though it seems difficult.
Any help is appreciated.

Hii Umesh,

Please refer this.

Regards,
Nimin