GNU Emacs Manual - Postscript

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.

If you are using a color display, you can print a buffer of program code with color highlighting by turning on Font-Lock mode in that buffer, and using `ps-print-buffer-with-faces`.

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.