Converting 10.000 ODT files to PDF on macOS

Writing a book, Automating Document Production - Discuss your special needs here

Converting 10.000 ODT files to PDF on macOS

Postby kaiuweheinz » Thu Feb 27, 2020 12:50 pm

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
kaiuweheinz
 
Posts: 1
Joined: Thu Feb 27, 2020 12:42 pm

Re: Converting 10.000 ODT files to PDF on macOS

Postby John_Ha » Thu Feb 27, 2020 1:18 pm

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.3.5.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.
John_Ha
Volunteer
 
Posts: 7612
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Converting 10.000 ODT files to PDF on macOS

Postby Villeroy » Thu Feb 27, 2020 1:32 pm

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, no OpenOffice, LibreOffice 6.4
User avatar
Villeroy
Volunteer
 
Posts: 28203
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Converting 10.000 ODT files to PDF on macOS

Postby robleyd » Thu Feb 27, 2020 1:40 pm

Have you looked at the command line options as suggested in this topic dealing with a similar request?
Cheers
David
Apache OpenOffice 420m2(Build:9821) - Slackware 14.2 - 64 bit
LibreOffice 6.0.7.3 - Slackware 14.2 - 64 bit
Apache OpenOffice 4.1.4 - Windows 7 Virtual machine
User avatar
robleyd
Moderator
 
Posts: 3312
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Converting 10.000 ODT files to PDF on macOS

Postby Bill » Thu Feb 27, 2020 9:13 pm

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   Expand viewCollapse view
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.7, LO 6.3.6.2 and LO 6.4.3.2 on Kubuntu 20.04
Bill
Volunteer
 
Posts: 7731
Joined: Sat Nov 24, 2007 6:48 am

Re: Converting 10.000 ODT files to PDF on macOS

Postby Villeroy » Thu Feb 27, 2020 11:08 pm

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, no OpenOffice, LibreOffice 6.4
User avatar
Villeroy
Volunteer
 
Posts: 28203
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany


Return to Advanced Uses

Who is online

Users browsing this forum: No registered users and 4 guests