Mohan Ram
Mohan Ram

Reputation: 8463

How to convert msword doc file and pdf file into html content

In my site user can uploads msword and pdf files. i need to read word and pdf file and to display as an html content to user. How to do this

Upvotes: 0

Views: 966

Answers (2)

softcr
softcr

Reputation: 620

I recomment using OpenOffice as a headless daemon on your server. OpenOffice is incredibly good at converting documents and offers an inteface for communicating with other processes. Unfortunately only python and java is supported. So you have to add some kind of glue code, to make it play nice with PHP. Thats the way I use to convert .doc(x)/.ppt(x) documents to pdf in my own webapp and works really neat.

Here is a guide for using OpenOffice and Python (you won't really need to code lots of python, promised!)for such conversions http://www.oooforum.org/forum/viewtopic.phtml?t=3451

Upvotes: 0

Vladimir
Vladimir

Reputation: 1797

Maybe you should use some tool for such kind of conversions.

Upvotes: 1

Related Questions