Ask Your Question
1

CONVERT-TO on Windows Not Working [closed]

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

thumper gravatar image

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

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

Comments

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 +0100 )edit

4 Answers

Sort by » oldest newest most voted
2

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

Pedro gravatar image

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

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 3.5.5.3)

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

edit flag offensive delete link more

Comments

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".

Thanks!

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

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

manj_k gravatar image

Maybe helpful:

Tags, matching "convert-to"

edit flag offensive delete link more
1

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

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

Comments

@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 +0100 )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 +0100 )edit
0

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

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 3.5.6.2

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

Comments

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

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

see: http://ask.libreoffice.org/en/question/2641/convert-to-command-line-parameter/?answer=22570#post-id-22570

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

Question Tools

Stats

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

Seen: 8,336 times

Last updated: Sep 07 '12