LibreOffice Command Line: Convert Multiple Files DOCX to PDF

DOCX is Microsoft Word OOXML document format. This command line showing how to convert multiple DOCX into PDF. This article is intended for everyone to be able to convert Microsoft Word into PDF document in GNU/Linux system. This article is also a companion of converting Word to Writer article.
soffice --headless --convert-to pdf *.docx

Example result shown below between DOCX sample (left) and PDF (right):

We take those DOCX templates from several sources below:



We use cookies to give you the best online experience. By agreeing you accept the use of cookies in accordance with our privacy policy.