Converting 10.000 ODT files to PDF on macOS

Writing a book, Automating Document Production - Discuss your special needs here
Post Reply
kaiuweheinz
Posts: 1
Joined: Thu Feb 27, 2020 12:42 pm

Converting 10.000 ODT files to PDF on macOS

Post 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
Last edited by robleyd on Thu Feb 27, 2020 1:28 pm, edited 1 time in total.
Reason: Remove Known Issues icon
OpenOffice 4.1.7 with macOS 10.15.3
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Converting 10.000 ODT files to PDF on macOS

Post 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.
Last edited by John_Ha on Thu Feb 27, 2020 1:49 pm, edited 1 time in total.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Converting 10.000 ODT files to PDF on macOS

Post 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
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
robleyd
Moderator
Posts: 5056
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Converting 10.000 ODT files to PDF on macOS

Post by robleyd »

Have you looked at the command line options as suggested in this topic dealing with a similar request?
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.1.2; SlackBuild for 24.2.1 by Eric Hameleers
Bill
Volunteer
Posts: 8932
Joined: Sat Nov 24, 2007 6:48 am

Re: Converting 10.000 ODT files to PDF on macOS

Post 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.
AOO 4.1.14 on Ubuntu MATE 22.04
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Converting 10.000 ODT files to PDF on macOS

Post by Villeroy »

Another great Python script. Never heard about unoconv.
https://github.com/unoconv/unoconv/blob ... EADME.adoc
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply