Ask Your Question
0

What's the best way to batch convert ODF to PDF on Windows?

asked 2012-10-04 20:04:16 +0200

Olivier gravatar image

updated 2015-08-26 21:49:37 +0200

Alex Kemp gravatar image

Hi

Can someone point a tool to batch convert a folder of ODF files to PDF? preferably on Windows.

Thank you

edit retag flag offensive close merge delete

Comments

To improve the overall quality of this website, you should rephrase the title of your post as a question, eg. How can I batch convert ODF files to PDF in Windows?

hyogapag gravatar imagehyogapag ( 2012-10-04 21:15:59 +0200 )edit

4 Answers

Sort by » oldest newest most voted
0

answered 2013-01-31 09:02:52 +0200

qubit gravatar image

Hi @Olivier,

Take a look at the answers to this question:

Specifically, look at the notes on how Windows' shell expands (or rather does not expand) the asterisk (*) character. I don't think it's necessary to use unonconv for the conversion -- you could just use the python code for globbing, and then call soffice.exe --headless --convert-to pdf and pass in the appropriate parameters, etc.., etc..

edit flag offensive delete link more

Comments

There is a typo: It's called unoconv not unonconv. I don't have enough points to change the typo :-(

guettli gravatar imageguettli ( 2016-03-01 15:57:16 +0200 )edit
3

answered 2012-10-04 21:06:01 +0200

ehansen gravatar image

updated 2012-10-04 21:08:06 +0200

On Linux this is very easy to do by using LibreOffice itself:

In a terminal simply go to your folder and type:

libreoffice --headless --convert-to pdf *.odt (and Enter)

This will convert all text documents to PDF. Repeat with .ods and .odp if needed.

I think it more complicated on Windows, so if this is a one time task perhaps you could start your computer with a Ubuntu Live CD and do it from Linux.

edit flag offensive delete link more
0

answered 2012-10-04 21:13:34 +0200

hyogapag gravatar image
  1. Open the command line by pressing the Windows key + R, then typing cmd.exe in the Run line.
  2. Go to the directory where your ODF files are stored by typing cd C:\path\to\your\folder
  3. Convert your ODF files by typing :

    soffice.exe --headless --convert-to pdf *.odt

edit flag offensive delete link more

Comments

Have you actually tried that, hyogapag? Because I can not get it to work with multiple files on Win7. Also, i think he will have to add the full path to soffice.exe.

ehansen gravatar imageehansen ( 2012-10-04 21:25:22 +0200 )edit
0

answered 2015-05-20 23:28:55 +0200

FWIW, answer of rafik here gives a reasonable solution. Note also another information at the abovementioned page.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2012-10-04 20:04:16 +0200

Seen: 17,590 times

Last updated: May 20 '15