summaryrefslogtreecommitdiff
path: root/xdpr.man
blob: 0f307665c4d1092345faa6946cd03260f30db15f (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
.TH XDPR 1 __xorgversion__
.SH NAME
xdpr \- dump an X window directly to a printer
.SH SYNOPSIS
.B xdpr
[
.I filename
]
[
.B \-display
.I host:display
]
[
.B \-P\fIprinter\fP
]
[
.B \-device
.I devtype
]
[
.I option
\&.\|.\|.
]

.SH DESCRIPTION
.I Xdpr
uses the commands
.I xwd,
.I xpr,
and
.I lpr
or
.I lp
to dump an X window, process it for a particular printer type, and
print it out on the printer of your choice.  This is the easiest way
to get a printout of a window.  \fIXdpr\fP by default will print the
largest possible representation of the window on the output page.
.PP
The options for \fIxdpr\fP are the same as those for \fIxpr\fP,
\fIxwd\fP, and \fIlpr\fP or \fIlp\fP.
The most commonly-used options are described
below; see the manual pages for these commands for
more detailed descriptions of the many options available.
.SH OPTIONS
.TP
.I filename
Specifies a file containing a window dump (created by \fIxwd\fP) to be
printed instead of selecting an X window.
.TP
.B \-P\fIprinter\fP
Specifies a printer to send the output to.  If a printer name is not
specified here, \fIxdpr\fP (really, \fIlpr\fP or \fIlp\fP)
will send your output to the
printer specified by the \fIPRINTER\fP environment variable.
Be sure that type of the printer matches the type specified
with the \fI\-device\fP option.
.TP
.B \-display \fIhost:display\fP[\fI.screen\fP]
Normally,
.I xdpr
gets the host and display number to use from the environment
variable ``DISPLAY.''
One can, however, specify them explicitly; see \fIX\fP(__miscmansuffix__).
.TP
.B \-device \fIdevtype\fP
Specifies the device on which the file will be printed.  Currently supported:
.RS 12
.PD 0
.TP
.B ljet
HP LaserJet series and other monochrome PCL devices
such as ThinkJet, QuietJet, RuggedWriter, \s-1HP\s+12560 series,
and HP 2930 series printers
.TP
.B pjet
HP PaintJet (color mode)
.TP
.B pjetxl
HP PaintJet XL Color Graphics Printer (color mode)
.TP
.B pp
IBM PP3812
.TP
.B ps
PostScript printer
.PD
.RE
.IP
The default is PostScript.
\fB\-device lw\fP (LaserWriter) is equivalent to \fB\-device ps\fP and is
provided only for backwards compatibility.
.TP
.B \-help
This option displays the list of options known to
.I xdpr.
.PP
Any other arguments
will be passed to the
.I xwd,
.I xpr,
and
.I lpr
or
.I lp
commands as appropriate for each.
.SH SEE ALSO
.IR xwd (1),
.IR xpr (1),
.IR lpr (1),
.IR lp (1),
.IR xwud (1),
.IR X (__miscmansuffix__)
.SH ENVIRONMENT
.TP 10
DISPLAY
which display to use by default.
.TP 10
PRINTER
which printer to use by default.
.SH AUTHORS
Paul Boutin, MIT Project Athena
.br
Michael R. Gretzinger, MIT Project Athena
.br
Jim Gettys, MIT Project Athena