I'm struggling with PDF generation on a headless linux server.
Here what I've done:
1) I started Xvfb
2) I started OpenOffice headless
3) I changed PDFGeneratorAction.php to correct the python path
What is not working:
If I try to generate the PDF trough KTDMS I get:
An error occurred generating the PDF - please contact the system administrator.<br>Traceback (most recent call last): File "bin/openoffice/pdfgen.py", line 100, in <module> doc.storeToURL(url_save, properties) __main__.ErrorCodeIOException
If I look in /tmp I can see a 0byte file has been created by the process.
After reading other posts I tried from the command line:
python /var/www/knowledgeTree-OSS/bin/openoffice/pdfgen.py /var/www/knowledgeTree-OSS/var/Documents/00/6 /tmp/ktpdfKWK3N7_1
and this is working OK.
Can anyone help me?
I'm running KnowledgeTree OSS Version 3.4.6 on Ubuntu Linux 7.10.
Please ask if you need more info on the steps to reproduce this problem.
Many thanks
Bye
Piero