libreoffice
Convert documents to PDF instantly with LibreOffice. This tool allows batch conversion of various document types to PDF format. Free and easy to use.
LibreOffice
Convert your documents to PDF format using LibreOffice. This guide shows you how to perform batch conversions and handle files in nested folders.
Basic PDF Conversion
Convert all PPTX files in the current directory to PDF:
libreoffice --headless --convert-to pdf *.pptx
Specifying Output Directory
Convert DOCX files and save the resulting PDFs to a different directory:
libreoffice --headless --convert-to pdf *.docx --outdir ~/docs/
Converting Files in Subfolders
Use fd
(a find-like command) to locate and convert documents recursively:
fd -e doc -e docx -x libreoffice --headless --convert-to pdf --outdir {//} {}
Additional Resources
For more information on LibreOffice command-line options, refer to the official documentation: