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
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.