.TH xdpr "" "" "X Utility"
.PC "Dump an X window directly to a printer"
\fBxdpr [\fIfilename\^\fB] [\-display \fIhost\^\fB:\fIdisplay\^\fB] [\-P\fIprinter\^\fB] [\-device \fIdevtype\^\fB] [\fIoption ...\^\fB]\fR
.PP
.HS
.SH Options:
.IC \fIfilename\fR
The file into which
.B xwd
dumps an image of the screen
.IC "\fB\-device \fIdevtype\fR"
The device on which the file will be printed; must be one of
\fBla100\fR,
\fBljet\fR,
\fBln03\fR,
\fBpjet\fR,
\fBlw\fR,
\fBpjetxl\fR,
\fBpp\fR,
or
\fBps\fR.
.IC \fB\-help\fR
Display the list of options that
.B xdpr
recognizes.
.IC "\fB\-display \fIhost\^\fB:\fIdisplay\fB[\fI.screen\fB]\fR"
The host and display number to use
.IP \fB\-P\fIprinter\fR
The printer on which to print the dumped image of the screen
.Pp
.B xdpr
passes through all other arguments
.BR xwd ,
.BR xpr ,
and
.B lpr
or
.BR lp ,
as appropriate
.HE
The X utility
.B xdpr
uses the X clients
.B xwd
and
.BR xpr ,
and the \*(CO commands
.B lpr
or
.B lp
to dump an X window, process it for a particular type of printer, and
print it on the printer of your choice.
This is the easiest way to get a printout of a window.
.B xdpr
by default prints the largest possible representation
of the window on the output page.
.PP
The options for
.B xdpr
are the same as those for
.BR xpr ,
.BR xwd ,
and
.B lpr
or
.BR lp .
The most commonly used options are described below.
For details, see the entries for
.B xdpr
and
.B xpr
in this manual, and the entry for
.B printer
in the \*(CO Lexicon.
.SH Options
.B xdpr
recognizes the following command-line options:
.IP \fIfilename\fR
The file into which
.B xwd
dumps an image of the screen.
.IP "\fB\-device \fIdevtype\fR"
Name the device on which the file will be printed.
.B xdpr
current recognizes the following:
.RS
.IP \fBla100\fR
The Digital LA100.
.IS \fBljet\fR
Hewlett\-Packard LaserJet and all other monochrome PCL devices.
.IS \fBln03\fR
The Digital LN03.
.IS \fBpjet\fR
Hewlett\-Packard PaintJet (color mode).
.IS \fBlw\fR
The Apple LaserWriter.
This is equivalent to
.BR ps .
.IS \fBpjetxl\fR
Hewlett\-PackardPaintJet XL Color Graphics Printer (color mode).
.IS \fBpp\fR
IBM PP3812.
.IS \fBps\fR
Any PostScript printer.
.RE
.IP
The default is PostScript.
.IP \fB\-help\fR
Display the list of options that
.B xdpr
recognizes.
.IP "\fB\-display \fIhost\^\fB:\fIdisplay\fB[\fI.screen\fB]\fR"
.B xdpr
normally reads the environmental variable
.B DISPLAY
to find the host and display number to use.
This variable specifies them explicitly.
.IP \fB\-P\fIprinter\fR
Name the printer to which
.B xpr
sends the dumped image of the screen.
If you do not name a printer on the command line,
.B xdpr
(really,
.B lpr
or
.BR lp )
sends your output to the printer named by the
environmental variable
.BR PRINTER .
Be sure that type of the printer matches the type specified with the option
.BR \-device .
.PP
.B xdpr
passes through all other arguments
.BR xwd ,
.BR xpr ,
and
.B lpr
or
.BR lp ,
as appropriate for each.
.SH Environment
.B xdpr
read the following environmental variables:
.IP \fBDISPLAY\fR
The display to use by default.
.IP \fBPRINTER\fR
The printer to use by default.
.SH "See Also"
.B
xpr,
xwd,
xwud,
X utilities
.R
.br
\*(CO Lexicon:
.B
lp,
lpr,
printer
.R
.SH Notes
Copyright \(co 1985, 1988, Massachusetts Institute of Technology.
.PP
.II "Boutin, Paul"
.II "Gretzinger, Michael R."
.II "Gettys, Jim"
.B xdpr
was written by
Paul Boutin, Michael R. Gretzinger, and Jim Gettys of MIT Project Athena.
