Is there any command line app in Ubuntu that can convert Office documents to PDF, like convert Excel (xls,xlsx) and Word(doc, docx) to pdf in Ubuntu. I cannot used any Office suite, like Open Office.
I know that there are Java projects that can communicate with OpenOffice to use its functionality to convert documents to PDF, but not going in direction.
But if the OpenOffice people or LibreOffice people have created a stand-alone command-line app with this capability to covert documents to PDF, I would like that very much.
Step - 1 Install Libreoffice.if it is not install in your system or server.
do follow:
libreoffice --headless --convert-to pdf your_file_path --outdir upload_directory
Here,
your_file_path : complete your file path like /var/www/mydocument.docx
upload_directory : complete directory like /var/www/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With