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