convert docx to pdf on Windows by MS Office/WPS Office/LibreOffice
Only Windows is supported
You should first install MS Office/WPS Office/LibreOffice
pip install -r requirements.txt
from convert import convert_to_pdf
convert_to_pdf("C:/test/out.docx", "C:/test/out.pdf")