1000 word docments to PDF

Before I Took the abuse on stack exchange.I figured I would ask here first. These forums are so much more helpful and friendly.

I have a folder on my Mac that literally contains thousands of Word documents.

Does anyone have a clever way to convert all of these to PDF in window/batch?

https://gist.github.com/sebnilsson/1014112

you will of course need to tweak it a little.

automator ?
there is a word script to save as pdf a selection of folder/files.

You can do with LibreOffice

/Applications/Path/To/LibreOffice.app/Contents/MacOS/soffice --headless --convert-to pdf /Path/To/File.doc

google “macOS batch convert word doc to pdf”
take your pick
lots & lots of hits to pick from
most end up with automator in one form or another
and a google for “automator convert word doc to pdf” reveals a pile of different ones - even some prewritten automator scripts

Pandoc is a good universal document converter. Free and open-source…

https://pandoc.org

Text below from: https://forum.xojo.com/5245-document-creation-and-download-using-office-automation-or-relat/p1#p37351

If you have libreOffice / OpenOffice installed you can use the python script “unoconv” invoked from a RS/xojo shell

Command: unoconv -f pdf Document_to_convert

Not only that, you can also convert reports made by RS/Xojo to PDF automatically. Just make sure the RS/Xojo reports are saved in bmp format. Print output from RS/Xojo or reports is graphic so the pdf file will just represent an embedded image. Not very useful for text search in pdf document.

The unoconv can also convert word documents or openoffice/Libreoffice documents to pdf. And much more
.

When you install libreoffice on windows make sure you also select the python part. you will also need to download unoconv from: https://github.com/dagwieers/unoconv And you have to use libreoffice’s own python.exe to execute unoconv as “pyuno.pyd” in delivered libreoffice is only supported for this version.

On Linux you just get all rpms for Libreoffice/ Openoffice. It is also supported for Mac.

More info about unoconv: http://dag.wieers.com/home-made/unoconv/

Just noticed it’s Mac… gawsh, embarassed… :slight_smile: