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.

Bruni
  • 11,099

1 Answers1

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.

Bruni
  • 11,099