Ask Your Question
0

Libreoffice file conversion problem on centOS [closed]

asked 2014-09-03 15:31:57 +0200

soumya gravatar image

updated 2016-03-03 16:17:11 +0200

Alex Kemp gravatar image

I am using centOS 6.5 and libreoffice packages all installed. When I am trying to convert document using command line getting error.I can't recognize the problem.

I am using following command

libreoffice --headless -convert-to html resume.docx 2>&1

or

soffice -env:UserInstallation=file:MY_PATH --headless --convert-to pdf:writer_pdf_Export --outdir files 11.ppt 2>&1

or

/usr/lib/libreoffice/program/soffice.bin --headless --convert-to pdf:writer_pdf_Export --outdir files 11.ppt 2>&1

When exceute the above command I am getting following error

/usr/lib/libreoffice/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)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-03-03 16:17:41.793856

1 Answer

Sort by » oldest newest most voted
0

answered 2014-09-04 02:37:14 +0200

oweng gravatar image

updated 2014-09-04 02:38:35 +0200

The --headless argument simply supresses the GUI but I recall reading a developer statement that there is still an X dependency. Perhaps add the --nologo or --display argument as listed on the help page.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-09-03 15:31:57 +0200

Seen: 1,969 times

Last updated: Sep 04 '14