Convert DOC to PDF from the command line

Does anyone recommend a DOC to PDF converter that can be run from the command line? This seems like an easy requirement, but I do not agree with the free solutions.

+10
command-line windows pdf doc docx
source share
2 answers

I recommend the OfficeToPDF command-line application .

C:\>OfficeToPDF.exe /bookmarks /print /verbose test.docx test.pdf Converting test.docx to test.pdf Converting with Word converter Completed Conversion C:\> 

I used this solution to automate the creation of PDF using ANT.

+7
source share

I appreciate that you are trying to do this from the command line, but since you mentioned C #, the approach I use is to first convert doc to ps (PostScript) in C #, which is relatively simple and well documented. and then from the command line use Ghostscript to convert to PDF. Pls don't underestimate the tool from the base website - it's awesome.

+4
source share

All Articles