Page 1 of 1

how to convert word docs into pdf on upload

Posted: Fri Dec 01, 2006 1:07 am
by philippe2
Hi
I have a form where people upload word documents to submit conference papers. The word docs then get stored on the server. I am trying to find a way whereby the word document would be converted to pdf during the upload procedure. Would anyone have a suggestion as to how I could achieve this?

Many thanks

Philippe

Posted: Fri Dec 01, 2006 3:39 am
by dibyendrah
I Hope that fpdf will do that. Find more information on
http://www.fpdf.org/

Posted: Fri Dec 01, 2006 4:32 am
by philippe2
dibyendrah wrote:I Hope that fpdf will do that. Find more information on
http://www.fpdf.org/
Hi
Thanks, but I have already looked at FPDF, it generates pdfs from pre-defined data or data supplied via a form, but I can't find a way to get it to 'print' a Word Document the same way Acrobat would do for instance.
The idea is when they upload a word document, it is converted (printed) to PDF and stored as pdf on the server.

Any ideas?

Many thanks

Philippe

Posted: Fri Dec 01, 2006 9:19 am
by hawleyjr
You are going to need a couple things....

A server running Windows

Microsoft Office

Acrobat

php's exec() command

Just a side thought...I bet you can also do it all with Open Office.

Posted: Fri Dec 01, 2006 10:05 am
by dibyendrah
Does OpenOffice.org supports command line doc to pdf conversion ? If yes, that's a good news for the people who works on linux rather than windows ;)