Command line tool to convert DOC and DOCX files to PDF
You can use the docx2pdf command line tool to bulk convert docx to pdf. It uses Microsoft Word to directly convert to pdf so you will need to have it installed. One macOS, it uses JXA (AppleScript for JavaScript) to talk to Word and on windows it uses win32com.

pip install docx2pdf

# single file
docx2pdf myfile.docx

# entire folder
docx2pdf myfolder/


Disclaimer: I wrote docx2pdf after getting frustrated at the lack of cross-platform tools to convert docx to pdf directly using Microsoft Word as I needed a perfect replica with zero formatting issues. https://github.com/AlJohri/docx2pdf