Can LibreOffice convert xlsx to PDF as Linux command line?

Can LibreOffice convert xlsx to PDF as Linux command line? I have many xlsx files generated on Linux on daily basis, need to convert them to PDFs while keeping the rich format. Thanks.

Also, can I use LibreOffice for commercial usage? Do I need to pay license fee?

Thanks.

It’s a good idea to limit posts in these Q&A sites to one question, and also to search before posting. Both of these have come up before. :wink:

Can LibreOffice convert xlsx to PDF as Linux command line?

Yes, use the command in this format:

$ libreoffice --convert-to pdf example.xlsx

See further this Q&A on AskUbuntu.

Also, can I use LibreOffice for commercial usage? Do I need to pay license fee?

Yes, you can; and no, you don’t.


To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks.

Thanks so much.