Drucken beliebiger Dokumente über bash/shell linux

OP #5038943
Lesenswert?

Hallo,
Ich habe Cups usw aufm meinen System installiert und eingerichtet. Über 
den Befehl
1
lp -d DRUCKER -P X-Y filename.pdf

Kann man nun PDF Dateien drucken. Wie kann ich

a)alle gängigen Office Dateien .doc .xls drucken
b)alle möglichen Dateitypen wie .txt usw


Danke
Gast #5038982
Lesenswert?

1
$ libreoffice --help
2
LibreOffice 5.0.6.2 00m0(Build:2)
3

4
Usage: soffice [options] [documents...]
5

6
Options:
7
--headless     like invisible but no user interaction at all.
8
-p <documents...>
9
      print the specified documents on the default printer.
10
--pt <printer> <documents...>
11
      print the specified documents on the specified printer.
12
--convert-to output_file_extension[:output_filter_name[:output_filter_options]] [--outdir output_dir] files
13
      Batch convert files (implies --headless).
14
      If --outdir is not specified then current working dir is used as output_dir.
15
      Eg. --convert-to pdf *.doc
16
          --convert-to pdf:writer_pdf_Export --outdir /home/user *.doc
17
          --convert-to "html:XHTML Writer File:UTF8" *.doc
18
          --convert-to "txt:Text (encoded):UTF8" *.doc

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren