views:

1770

answers:

2

What's the best way of converting PDF docs to Microsoft Word format in PHP? This can be either as a PHP script or calling a (Linux) executable (with proc_open()). It just needs to be relatively fast and produce quality Word documents (in 97/2000/2003 format).

Commercial software is OK.

+1  A: 

Openoffice has a PDF import extension. Most of OpenOffice is scriptable, so you should be able to write a command line interface to perform the conversion. There are many examples on the official UNO wiki.

codelogic
doesn't work. it OO converts it to a drawing not a doc.
Jesse Pepper
A: 

By far the easiest way is with phpLiveDocx. It can load DOC, DOCX and RTF and save to PDF. It can be downloaded from http://www.phplivedocx.org/articles/brief-introduction-to-phplivedocx/ The download file contains a large number of sample applications, which illustrate all aspects of the PHP5 library. Leo

this does the opposite of what they want!
Jesse Pepper