hello
/opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststar
twizard
[root@kvm85 ~]# netstat -ano | grep 8100
tcp 0 0 127.0.0.1:8100 0.0.0.0:* LISTEN off (0.00/0/0)
[root@kvm85 ~]# ps aux | grep soffice
root 1280 0.0 0.1 106060 1388 pts/0 S+ 09:11 0:00 /bin/sh /opt/openoffice4/program/soffice -headless -accept=socket,host=127.0.0.1,port=8100;urp; -nofirststartwizard
root 1289 0.0 5.6 609800 57364 pts/0 Sl+ 09:11 0:00 /opt/openoffice4/program/soffice.bin -headless -accept=socket,host=127.0.0.1,port=8100;urp; -nofirststartwizard
root 1338 0.0 0.0 103244 832 pts/1 R+ 09:18 0:00 grep soffice
[root@kvm85 ~]#
require_once '../../classes/CreateDocx.inc';
$docx = new CreateDocx();
$docx->enableCompatibilityMode();
$docx->addTemplate('../files/TemplateText.docx');
$docx->addTemplateVariable('WEIGHT1', '10');
$docx->addTemplateVariable('WEIGHT2', '20');
$docx->addTemplateVariable('WEIGHT3', '25');
$docx->addTemplateVariable('PRICE1', '5');
$docx->addTemplateVariable('PRICE2', '30');
$docx->addTemplateVariable('PRICE3', '7');
$docx->addTemplateVariable('TOTALWEIGHT', '55');
$docx->addTemplateVariable('TOTALPRICE', '42');
$docx->addTemplateVariable('NAME',
'<strong>David Hume</strong><br />
<em>Character is the result of a system of stereotyped principles.</em>',
'html');
$docx->createDocx('../docx/example_template_html');
$document = new TransformDoc();
$docx->transformDocx('../docx/example_template_html.docx', '../docx/example_template_html.pdf');
The docx directory has example_template_html.docx but no example_template_html.pdf
check.php still said that You're not running OpenOffice in headless mode on port 8100.
what should I do ?
thanks a lot