HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

soffice — CLI for the powerful and free LibreOffice suite. More information: <https://help.libreoffice.org/lat

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandandclipowerfulsofficefor

Problem

How to use the soffice command: CLI for the powerful and free LibreOffice suite. More information: <https://help.libreoffice.org/latest/en-US/text/shared/guide/pdf_params.html>.

Solution

soffice — CLI for the powerful and free LibreOffice suite. More information: <https://help.libreoffice.org/latest/en-US/text/shared/guide/pdf_params.html>.

Open one or more files in read-only mode:
soffice --view {{path/to/file1 path/to/file2 ...}}


Display the content of one or more files:
soffice --cat {{path/to/file1 path/to/file2 ...}}


Print files using a specific printer:
soffice --pt {{printer_name}} {{path/to/file1 path/to/file2 ...}}


Convert all .doc files in the current directory to PDF:
soffice --convert-to pdf *.doc

Code Snippets

Open one or more files in read-only mode

soffice --view {{path/to/file1 path/to/file2 ...}}

Display the content of one or more files

soffice --cat {{path/to/file1 path/to/file2 ...}}

Print files using a specific printer

soffice --pt {{printer_name}} {{path/to/file1 path/to/file2 ...}}

Convert all `.doc` files in the current directory to PDF

soffice --convert-to pdf *.doc

Context

tldr-pages: common/soffice

Revisions (0)

No revisions yet.