1

I would like to use the libreoffice flatpak version to headlessly convert odt files to pdf.

So e.g.

libreoffice --headless --convert-to pdf ./somefile.odt

However, I want to use the flatpak version for this.

  • Does your command distinguish between flatpak and other versions of LO? – User24601 Mar 24 at 12:58
  • 1
    @Graham No, however, when involked on a system with libreoffice ppa installed, it uses this one. When involked on a system with only the flatpak version installed, it returns "libreoffice is not installed." – Bruni Mar 24 at 13:09
1

This:

flatpak run org.libreoffice.LibreOffice/x86_64/stable --headless --convert-to pdf ./somefile.odt

seems to work.

Hence, you can set an alias:

alias libreoffice="flatpak run org.libreoffice.LibreOffice/x86_64/stable"

and add it to your ~/.bashrc file and use libreoffice headlessly, like you are used to.

| improve this answer | |
  • Could you help out here? – DK Bose Apr 1 at 10:13
  • @DKBose I will share my experience, but i am not sure why I no longer have this problem. – Bruni Apr 1 at 10:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.