How to convert Word (doc) to PDF from Windows command line?

"winword.exe" "C:\My Files\doc1.doc" /mFilePrintDefault Provided you have quiet PDF printer as default.

Also try libreOffice offspring od OpenOffice.org. It is based of go-ooo which had no problems with OLE metrics in office.


  1. if you have Microsoft Word installed, you can use DocTo:

    https://github.com/tobya/DocTo

    batch operation is supported, all files in directory can be converted from doc to pdf:

    docto -f "C:\Dir with Spaces\FilesToConvert\" -O "C:\DirToOutput" -T wdFormatPDF  -OX .pdf
    
  2. another option is to use the following powershell script: https://gallery.technet.microsoft.com/office/Script-to-convert-Word-f702844d


I found this site, and by testing OfficeToPDF, it is apparently working well. Example:

OfficeToPDF "c​​:\help.doc" "c:\output\help.pdf"