Go to the first, previous, next, last section, table of contents.

Postscript Hardcopy

These commands convert buffer contents to Postscript, either printing it or leaving it in another Emacs buffer.

M-x ps-print-buffer
Print hardcopy of the current buffer in Postscript form.
M-x ps-print-region
Print hardcopy of the current region in Postscript form.
M-x ps-print-buffer-with-faces
Print hardcopy of the current buffer in Postscript form, showing the faces used in the text by means of Postscript features.
M-x ps-print-region-with-faces
Print hardcopy of the current region in Postscript form, showing the faces used in the text.
M-x ps-spool-buffer
Generate Postscript for the current buffer text.
M-x ps-spool-region
Generate Postscript for the current region.
M-x ps-spool-buffer-with-faces
Generate Postscript for the current buffer, showing the faces used.
M-x ps-spool-region-with-faces
Generate Postscript for the current region, showing the faces used.

The Postscript commands, ps-print-buffer and ps-print-region, print buffer contents in Postscript form. One command prints the entire buffer; the other, just the region. The corresponding `-with-faces' commands, ps-print-buffer-with-faces and ps-print-region-with-faces, use Postscript features to show the faces (fonts and colors) in the text properties of the text being printed.

All four of the commands above use the variables ps-lpr-command and ps-lpr-switches to specify how to print the output. ps-lpr-command specifies the command name to run, and ps-lpr-switches specifies command line options to use. If you don't set these variables yourself, they take their initial values from lpr-command and lpr-switches.

The variable ps-print-header controls whether these commands add header lines to each page--set it to nil to turn headers off. You can turn off color processing by setting ps-print-color-p to nil. Many other customization variables for these commands are defined and described in the Lisp file `ps-print.el'.

The commands whose names have `spool' instead of `print' generate the Postscript output in an Emacs buffer instead of sending it to the printer.


Go to the first, previous, next, last section, table of contents.