Ask Your Question

How can I convert documents to PDF using LO in headless mode? [closed]

asked 2014-06-06 16:13:19 +0200

SirScannell gravatar image

updated 2015-09-03 03:58:02 +0200

Alex Kemp gravatar image

Hi All,

I have a windows 2012 Server with LibreOffice_4.2.4_Win_x86 installed. I can convert word documents (and others) to pdf through the GUI however when I try o run this as a command line this fails. When I say fails the command completes with no errors or feedback but I never get a pdf file

soffice --headless --convert-to pdf filename.docx

Alos tried with output dir switch. Any help would be great

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-02-25 23:59:31.561525

1 Answer

Sort by » oldest newest most voted

answered 2014-06-06 17:18:01 +0200

fdmltd gravatar image

Do you have an outside program that creates PDF's? My scanner scans things to PDF and I have software that does the same thing. If you try to make a PDF and it fails to work correctly, running the file through a program like PDF Converter Professional might help you fix the file.

There are free programs that you can download that help make PDF files. Rather than finishing a document and trying to save it as a PDF, you can save it as a normal text file and then convert it.

That's the only advice I have for you, as I'm still learning how to use this thing myself.

edit flag offensive delete link more


I am pretty sure @SirScannell needed help with LibreOffice, not get product recommendations ;)

bencomp gravatar imagebencomp ( 2014-06-23 22:27:22 +0200 )edit

Question Tools

1 follower


Asked: 2014-06-06 16:13:19 +0200

Seen: 599 times

Last updated: Jun 23 '14