Page 1 of 1

error in pdf conversion of office documents

PostPosted:Fri Aug 20, 2010 11:03 am
by joergweis
Hi, i have a problem with the office document conversion. Conversion tool is installed, but I can't get soffice.bin started headless. Ubuntu 8.04 wants to have a display at this call, it seems that the headless option is not passed through:
command: /usr/lib/openoffice/program/soffice.bin "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo -headless -nofirststartwizard
output:

/usr/lib/openoffice/program/soffice.bin X11 error: Can't open display:
Set DISPLAY environment variable, use -display option
or check permissions of your X-Server
(See "man X" resp. "man xhost" for details)


open office version 2.4
ubuntu 8.04 server

Re: error in pdf conversion of office documents

PostPosted:Sun Aug 22, 2010 8:25 am
by jllort
some open office version needs to have X-server ... take a look at wiki, from OpenOffice.org 2.3, it is not necessary the X11

Re: error in pdf conversion of office documents

PostPosted:Mon Aug 23, 2010 2:39 pm
by joergweis
Hi, issue is resolved by me. I had to install Xvfb and I have created a small shell script:

#!/bin/bash

Xvfb :100 -screen 0 800x600x16 2>/dev/null &
/usr/lib/openoffice/program/soffice.bin -headless -display :100 -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard


works fine now, but was timeintesiv.

Re: error in pdf conversion of office documents

PostPosted:Tue Aug 24, 2010 7:45 am
by jllort
Conversion needs some cpu and memory, it's not a trivial task that need some hardware to be done, only I can recommend increase memory in your computer for better perfomance, there're no miracles.

Re: error in pdf conversion of office documents

PostPosted:Tue Aug 24, 2010 10:42 am
by joergweis
SOLVED

when I said timeintesive I did not mean the conversion, I ment the time to find the solution. THANKS

Re: error in pdf conversion of office documents

PostPosted:Tue Aug 24, 2010 11:14 am
by jllort
sorry :)