Hello,
Just follow these steps:
1. Start openoffice:
$ soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
2. Create an object that instantiate CreateDocx and invoke transformDocx method.
For example:
[quote]----------------------------------------------------
$docx = new CreateDocx();
$docx->transformDocx('doc_from', 'doc_to');
----------------------------------------------------[/quote]
Regards.