KnowledgeTree Community Forums

Skip to content


Advanced search
  • Board index ‹ KnowledgeTree Users ‹ Using KnowledgeTree
  • Change font size
  • Print view
  • FAQ
  • Register
  • Login

0 bytes generated PDF

Questions and discussion around the KnowledgeTree user experience: usability, user interface and functionality (KnowledgeTree 3.x specific)
Post a reply
2 posts • Page 1 of 1

0 bytes generated PDF

Postby ottuzzi » Tue Jan 29, 2008 4:58 pm

Hi there,

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
ottuzzi
 
Posts: 2
Joined: Tue Jan 29, 2008 4:01 pm
Top

Resolved!

Postby ottuzzi » Wed Jan 30, 2008 11:40 am

Hi there,

using the help in http://forums.knowledgetree.com/viewtopic.php?t=3043 I got the PDF generation working.

These are the steps for the Ubuntu 7.04:
Code: Select all
cd /var/www                                      #www-data user home
sudo mkdir .openoffice.org2                      #create the openoffice working dir
sudo chown -R www-data:www-data .openoffice.org2 #set the owner
sudo chmod 700 .openoffice.org2                  #change permissions
sudo -s                                          #you need to be root
su - www-data                                    #if you want to be www-data

#start openoffice headless
xvfb-run -a soffice -accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager" -nologo -headless -invisible


Hope this help!
Bye
Piero
ottuzzi
 
Posts: 2
Joined: Tue Jan 29, 2008 4:01 pm
Top


Post a reply
2 posts • Page 1 of 1

Return to Using KnowledgeTree

Who is online

Users browsing this forum: No registered users and 0 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Translated by phpBB.fr © 2007, 2008 phpBB.fr
SourceForge.net Logo
Document Management Software
File Sharing  |   Sales Document Management  |   Deal Rooms  |   Accounting Document Management  |   HR Document Management