convert word file to pdf file code example
Example 1: phpword word to pdf
//DomPDF
save('document.pdf', 'PDF');
Example 2: word to pdf
Just use Adobe Online converter it's free for one time and
for more than 1 you may have to sign in,
just use a temp mail like "moakt mail" or "temp mail" and u r good to go.
Link: https://www.adobe.com/in/acrobat/online/word-to-pdf.html
temp mail:https://temp-mail.org/