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
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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