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 ?
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.
I don't think you need steps 2 and 3. Just upload the file, then have a cron job (or Windows "at" job) distill the file. However, there might be some licensing issues -- you should probably look at the Adobe Distiller license.
Adobe sells a Distiller server for 100 users for $5000, unlimited users for (cough) $15,000. See their website for details.
cheers,
Travis
-- Travis Low <mailto:[EMAIL PROTECTED]> <http://www.dawnstar.com>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php