veryutils convertdoc command line software does convert between markup formats.
batch convert pdf to jpg, doc to pdf, pdf to jpg, xlsx to pdf, tiff to jpg
Convert Microsoft Word Documents (.doc/.docx) to Adobe Acrobat PDF (.pdf) Format
Convert Microsoft Word documents (.doc/.docx) to Adobe Acrobat PDF (.pdf) Format