Ask Your Question

CONVERT-TO on Windows Not Working [closed]

asked 2012-08-09 01:21:44 +0200

thumper gravatar image

updated 2015-10-17 23:19:16 +0200

Alex Kemp gravatar image

I have tried to execute this command convert-to many times without success. I am trying to convert a word doc to pdf. I have tried other formats but have yet to get any to work.

The batch command window stays open. I need to terminate using windows task manager.

I am using windows 7 and libreoffice 3.5. I have tried libreoffice 3.6.

"C:\Program Files (x86)\LibreOffice 3.5\program\soffice.exe" --headless --convert-to pdf --outdir C:\convertTest\ C:\convertTest\l06.doc

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 2015-10-17 23:19:44.967444


Hi @thumper, As @Pedro mentions below, this is probably a bug. Please file a bug here. The QA team will be happy to help you track down this issue! Thanks!

qubit gravatar imagequbit ( 2013-01-30 08:51:04 +0200 )edit

4 Answers

Sort by » oldest newest most voted

answered 2012-08-10 15:03:00 +0200

Pedro gravatar image

updated 2012-08-10 16:25:46 +0200

If you remove the ending \ in the outdir path i.e. to C:\convertTest it does work

(at least it does under Win XP x86 SP3 using LO

This is probably a bug and needs to be reported...

edit flag offensive delete link more


Here's a link to the Bug submission Assistant. Please provide a list of steps that can reproduce your bug.

Please post a link to any bugs you file in a comment below using the format "fdo#123456".


qubit gravatar imagequbit ( 2013-02-22 23:46:44 +0200 )edit

answered 2012-08-10 12:48:32 +0200

manj_k gravatar image

Maybe helpful:

Tags, matching "convert-to"

edit flag offensive delete link more

answered 2012-08-11 05:16:16 +0200

thumper gravatar image

Pedro, Thank you for your help. The command executes and ends, but no file is made. I tried another windows 7 box, same issue.

I tried a doc to PDF and doc to txt, still no file created.

edit flag offensive delete link more


@thumper, I also had success by opening a "terminal window" and navigating to C:\Program Files (x86)\LibreOffice 3.5\program and from there executing soffice.exe --headless --convert-to pdf --outdir C:\convertTest C:\convertTest\l06.doc. Maybe worth a shot?

Pedro gravatar imagePedro ( 2012-08-11 09:34:19 +0200 )edit

Good idea, but that did not work either. The command executes, no errors or other messages are displayed, but no L01.pdf was created.

thumper gravatar imagethumper ( 2012-08-13 01:08:02 +0200 )edit

answered 2012-09-07 19:19:24 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

It's working for me in win7, LO

Close LO first.

"C:\Program Files (x86)\LibreOffice 3.5\program\soffice.exe" --headless --convert-to doc --outdir "D:\output folder" "D:\input folder\input file.html"

edit flag offensive delete link more


this did work for me, thanks. (using LO on win7 64bit)

looks like outdir is necessary, and wildcards (*) are NOT supported. (use a for loop instead)


rafik gravatar imagerafik ( 2013-09-13 14:27:22 +0200 )edit

Question Tools


Asked: 2012-08-09 01:21:44 +0200

Seen: 9,722 times

Last updated: Sep 07 '12