Even with a simple example, the PDF file doesn't get created. From a web request, there are no errors.
We're using a CentOS 6 operating system.
Here's the PHP code we're using:
<?php
include '../rpcl/phpdocx/classes/CreateDocx.php';
$docx = new CreateDocx();
$docx->enableCompatibilityMode();
$text = 'This is a test';
$paramsText = array( 'b' => 'single', 'font' => 'Arial' );
$docx->addText($text, $paramsText);
$docx->createDocx('../reportcache/example_text');
$transform = new TransformDocAdvOpenOffice();
$path = realpath('../reportcache/example_text.docx');
$transform->transformDocument($path, str_replace('.docx', '.pdf', $path), realpath('../reportcache/'), array('debug' => true, 'method' => 'script'));
?>
Running from the command line, we get this:
ERROR: connection failed. Please make sure OpenOffice.org is running and listening on port 8100.
Using "ps -ef" we can confirm that open office is running. This is the command we used to start it:
# /opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp" -nofirststartwizard &
Any help would be greatly appreciated.
Thanks,
Jeff Truthan