Converting multiple files to different formats
I needed to convert a collection of .doc files into .pdf. I didn't want to open them one at a time, so this article describes how to convert them using a Terminal Session. Note that for this article I was using Mac OSX 10.12.6 with Libreoffice 5.2.
Make sure that LibreOffice is not running before running soffice commands from the Terminal.
We will start by opening a Terminal Session.
- Go to Applications > Utilities > Terminal.
- Change directory to the directory where your .doc files are stored.
- Run the following command:
/Applications/LibreOffice.app/Contents/MacOS/soffice --headless --convert-to pdf *.doc
Thanks for visiting,