tldr/pages/linux/libreoffice.md

21 lines
547 B
Markdown
Raw Normal View History

2020-10-06 16:42:54 +01:00
# libreoffice
> CLI for the powerful and free office suite LibreOffice.
> More information: <https://www.libreoffice.org/>.
- Open one or more files in read-only mode:
2020-10-06 16:42:54 +01:00
`libreoffice --view {{path/to/file1 path/to/file2 ...}}`
2020-10-06 16:42:54 +01:00
- Display the content of one or more files:
2020-10-06 16:42:54 +01:00
`libreoffice --cat {{path/to/file1 path/to/file2 ...}}`
2020-10-06 16:42:54 +01:00
- Print files using a specific printer:
2020-10-06 16:42:54 +01:00
`libreoffice --pt {{printer_name}} {{path/to/file1 path/to/file2 ...}}`
2020-10-06 16:42:54 +01:00
- Convert all `.doc` files in current directory to PDF:
2020-10-06 16:42:54 +01:00
`libreoffice --convert-to {{pdf}} {{*.doc}}`