Three solutions:
(1) In a Word document, go to File > Print and select the Microsoft Print to PDF option.
(2) Upload your document to OneDrive, open it in Word Online, then click File >Save as in Download as PDF.
(3) Use a free third-party PDF converter to install yourself as a printer.