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