Forum


Replies: 2   Views: 3130
Conversion
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by c_h_r_i_s  · 26-05-2012 - 08:09

I have the pro version of the software + the conversion plugin but cannot find any examples of how to convert a docx to doc or odf. Can anyone point me in the right direction?

Thanks

Posted by admin  · 11-04-2013 - 12:13

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.