summaryrefslogtreecommitdiff
path: root/source/desktop/command_line_printing/index.rst
blob: c53280af6e8c92c18dcacb2b87e08a3b0b274144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
***********************
 Command Line Printing
***********************

A list of useful commands and options to print documents from the
command line.

This assumes a CUPS server, as commonly configured on most Linux
distributions.

.. only:: html

   .. contents::

Printing
========

Get a list of available printers
--------------------------------

To get a list of all printers, with details::

   $ lpstat -p

just the list of all available destinations on the local network::

   $ lpstat -e

the current default one::

   $ lpstat -d

Printing in greyscale
---------------------

To get the list of options available for your printer use::

   $ lpoptions [-p <printer_name>] -l

there will be a line like (note that different printers may have a more
specific option that you need to enable)::

   ColorModel/Print Color Mode: Gray *RGB

and then you'll have to add ``-o ColorModel=Gray`` to the ``lpr``
command line, e.g.::

   $ lpr -o ColorModel=Gray <filename>

File Preparation
================

Converting spreadsheet files to PDF
-----------------------------------

Using the command ``ssconvert`` from Gnumeric::

   ssconvert <source_filename> <destination>.pdf

works with any format supported by Gnumeric, including of course ``xls``
and ``ods``.

..
   vim: set filetype=rst: