John Doe wrote:

hello, does any know how to conver microsoft word document to pdf via on the server using php language?? i try to implementing the feature that allow user to upload microsoft word document to the web server, after the upload, it automatic covert to pdf file ??? any one done that ?

thanks
john

I haven't done it, but if you have Windows + Word on the server then you can take advantage of the native Word API using COM. Pseudocode would be something like this:


1.  Handle uploading the file to a temporary directory
2.  Create a COM object for Word
3.  Use this COM object load the temporary file
4.  Use the adobe/pdf distiller to convert the file to a pdf file.

Please, if you do this let us know how it went so others can benefit.

Jason

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to