Convert Microsoft Word Document 'inputdocx' to PDF via LibreOffice Writer

FWIW, you can take a look at this for another option (using Pandoc):