Function: pr-despool-using-ghostscript

pr-despool-using-ghostscript is an autoloaded, interactive and byte-compiled function defined in printing.el.gz.

Signature

(pr-despool-using-ghostscript &optional FILENAME)

Documentation

Print spooled PostScript using ghostscript.

Interactively, when you use a prefix argument (C-u (universal-argument)), the command prompts the user for a file name, and saves the spooled PostScript image in that file instead of sending it to the printer.

Noninteractively, the argument FILENAME is treated as follows: if it is nil, send the image to the printer. If FILENAME is a string, save the PostScript image in a file with that name.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/printing.el.gz
;;;###autoload
(defun pr-despool-using-ghostscript (&optional filename)
  "Print spooled PostScript using ghostscript.

Interactively, when you use a prefix argument (\\[universal-argument]), the command prompts the
user for a file name, and saves the spooled PostScript image in that file
instead of sending it to the printer.

Noninteractively, the argument FILENAME is treated as follows: if it is nil,
send the image to the printer.  If FILENAME is a string, save the PostScript
image in a file with that name."
  (interactive (list (ps-print-preprint current-prefix-arg)))
  (let ((file (pr-ps-file filename)))
    (when (stringp file)
      (pr-despool-print file)
      (pr-ps-file-using-ghostscript file)
      (or filename (pr-delete-file file)))))