Convert docx to pdf on Windows or macOS directly using Microsoft Word (must be installed).
conda install conda-forge::docx2pdf