how to convert word docs into pdf on upload

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
philippe2
Forum Newbie
Posts: 4
Joined: Fri Dec 01, 2006 1:02 am

how to convert word docs into pdf on upload

Post 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
User avatar
dibyendrah
Forum Contributor
Posts: 491
Joined: Wed Oct 19, 2005 5:14 am
Location: Nepal
Contact:

Post by dibyendrah »

I Hope that fpdf will do that. Find more information on
http://www.fpdf.org/
philippe2
Forum Newbie
Posts: 4
Joined: Fri Dec 01, 2006 1:02 am

Post 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
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post 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.
User avatar
dibyendrah
Forum Contributor
Posts: 491
Joined: Wed Oct 19, 2005 5:14 am
Location: Nepal
Contact:

Post 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 ;)
Post Reply