Open a PowerShell terminal and clone the repository:
git clone https://github.com/diversen7/doc_to_pdf.git
cd doc_to_pdf
.\Convert-DocToPdf.ps1 -InputPath "C:\Users\azks430\doc_to_pdf\sample1.docx" -OutputPath "C:\Users\azks430\doc_to_pdf\sample1.pdf"
.\Convert-DocToPdf.ps1 -InputPath "\\wsl$\Ubuntu\home\dennis\digiarch\tmp\CC69HP9P.doc" -OutputPath "\\wsl$\Ubuntu\home\dennis\digiarch\tmp\CC69HP9P.doc.pdf"
This will convert all .docx, doc files in the input directory to PDF and save them in the output directory. The output directory will get the same structure as the input directory.
.\Convert-DocToPdf-dirs.ps1 -InputDir .\input -OutputDir .\output