Forum


Replies: 11   Views: 4410
Transform.php not working
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 complexii  · 11-04-2013 - 12:13

[quote][b]Quote from admin on October 1, 2012, 07:55[/b]

The next version of phpdocx will include a more detailed guide about this plugin and several improvements.

[/quote]

is this now available? we've installed oo 64bit via cpanel rpm. we can get is running using your oo init script. we continue to get errors when trying to run the following code:

[code]
require_once($_SERVER['DOCUMENT_ROOT']."/phpdocx/corp/classes/CreateDocx.inc");

$docx = new CreateDocx();

$docx->enableCompatibilityMode();

$text = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, ' .
'sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut ' .
'enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut' .
'aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit ' .
'in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' .
'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui ' .
'officia deserunt mollit anim id est laborum.';

$paramsText = array(
'b' => 'single',
'font' => 'Arial'
);

$docx->addText($text, $paramsText);

$docx->createDocx('../word_documents/example_text');
$docx->transformDocx('../word_documents/example_text.docx', '../word_documents/example_text.pdf');
[/code]

here are the errors:


** (OdfConverterTestStatic.exe:25557): CRITICAL **: _wapi_shm_file_open: shared file [/.wapi/shared_data-complexi3.serverphase.com-Linux-i686-312-12-0] open error: No such file or directory

** (OdfConverterTestStatic.exe:25557): CRITICAL **: _wapi_shm_attach: shared file [/.wapi/shared_data-complexi3.serverphase.com-Linux-i686-312-12-0] open error
/home/napkinsc/public_html/phpdocx/corp/classes/../lib/OdfConverter: symbol lookup error: /home/napkinsc/public_html/phpdocx/corp/classes/../lib/OdfConverter: undefined symbol: g_assertion_message_expr
Jan 7, 2013 11:10:15 AM com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection connect
INFO: connected
Jan 7, 2013 11:10:15 AM com.artofsolving.jodconverter.openoffice.connection.AbstractOpenOfficeConnection disposing
INFO: disconnected
Exception in thread "main" java.lang.IllegalArgumentException: inputFile doesn't exist: /tmp/tempOdt_50eb0176ec60b.odt
at com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:90)
at com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:74)
at com.artofsolving.jodconverter.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:70)
at com.artofsolving.jodconverter.cli.ConvertDocument.convertOne(ConvertDocument.java:154)
at com.artofsolving.jodconverter.cli.ConvertDocument.main(ConvertDocument.java:133)