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

Hi

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

Thank you

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?

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.

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

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.

Hi @ohallot,

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…

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

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