Page 1 of 1

Converting 10.000 ODT files to PDF on macOS

Posted: Thu Feb 27, 2020 12:50 pm
by kaiuweheinz
Hi,

I need to convert 10.000 .odt files to .pdf using OpenOffice on a macOS :knock: . I've tried online converting services but they mean a loss because they don't have my fonts and change the layout (files end up 5 pages long instead of the original 3 with paragraphs being displaced etc.) The PDF directory should remain the same.

I went through tons of stuff here but either it is for Win or it doesn't correspond to my issue.

Thank you in advance! ;)
Kai-Uwe

Re: Converting 10.000 ODT files to PDF on macOS

Posted: Thu Feb 27, 2020 1:18 pm
by John_Ha
1. Google batch convert files - it is probably easier under Windows so borrow someone's Windows PC
2. Hire a student to do it
3. Get someone to write a simple bit of code for you. See stackexchange.com etc
4. See the Macros forum
5. Post in the Paid support forum
6. Google batch printer. Install a PDF printer. Batch printouts to it.

Re: Converting 10.000 ODT files to PDF on macOS

Posted: Thu Feb 27, 2020 1:32 pm
by Villeroy
You have a PDF printer installed?
Print them one by one to that printer.
soffice -pt my_pdf_printer test.odt
or use the conversion feature according to soffice -help

Re: Converting 10.000 ODT files to PDF on macOS

Posted: Thu Feb 27, 2020 1:40 pm
by robleyd
Have you looked at the command line options as suggested in this topic dealing with a similar request?

Re: Converting 10.000 ODT files to PDF on macOS

Posted: Thu Feb 27, 2020 9:13 pm
by Bill
I was able to do this with a test folder containing 3 .odt files on Linux using unoconv with LibreOffice. If unoconv and LO are installed, opening a terminal in the folder and using the command

Code: Select all

unoconv -f pdf *.odt
converted all .odt files in the folder to .pdf. I don't know if this would work on Mac.

Re: Converting 10.000 ODT files to PDF on macOS

Posted: Thu Feb 27, 2020 11:08 pm
by Villeroy
Another great Python script. Never heard about unoconv.
https://github.com/unoconv/unoconv/blob ... EADME.adoc