Variable: ps-user-defined-prologue
ps-user-defined-prologue is a customizable variable defined in
ps-print.el.gz.
Value
nil
Documentation
User defined PostScript prologue code inserted before all prologue code.
ps-user-defined-prologue may be a string or a symbol function which returns a
string. Note that this string is inserted after ps-adobe-tag and PostScript
prologue comments, and before ps-print PostScript prologue code section. That
is, this string is inserted after error handler initialization and before
ps-print settings.
It's strongly recommended only insert PostScript code and/or comments specific for your printing system particularities. For example, some special initialization that only your printing system needs.
Do not insert code for duplex printing, n-up printing or error handler, ps-print handles this in a suitable way.
For more information about PostScript, see:
PostScript Language Reference Manual (2nd edition)
Adobe Systems Incorporated
As an example for ps-user-defined-prologue setting:
;; Setting for HP PostScript printer
(setq ps-user-defined-prologue
(concat "<</DeferredMediaSelection true /PageSize [612 792] "
"/MediaPosition 2 /MediaType (Plain)>> setpagedevice"))
This variable was added, or its default value changed, in Emacs 20.
Probably introduced at or before Emacs version 20.1.
Source Code
;; Defined in /usr/src/emacs/lisp/ps-print.el.gz
(defcustom ps-user-defined-prologue nil
"User defined PostScript prologue code inserted before all prologue code.
`ps-user-defined-prologue' may be a string or a symbol function which returns a
string. Note that this string is inserted after `ps-adobe-tag' and PostScript
prologue comments, and before ps-print PostScript prologue code section. That
is, this string is inserted after error handler initialization and before
ps-print settings.
It's strongly recommended only insert PostScript code and/or comments specific
for your printing system particularities. For example, some special
initialization that only your printing system needs.
Do not insert code for duplex printing, n-up printing or error handler,
ps-print handles this in a suitable way.
For more information about PostScript, see:
PostScript Language Reference Manual (2nd edition)
Adobe Systems Incorporated
As an example for `ps-user-defined-prologue' setting:
;; Setting for HP PostScript printer
(setq ps-user-defined-prologue
(concat \"<</DeferredMediaSelection true /PageSize [612 792] \"
\"/MediaPosition 2 /MediaType (Plain)>> setpagedevice\"))"
:type '(choice :menu-tag "User Defined Prologue"
:tag "User Defined Prologue"
(const :tag "none" nil) string symbol)
:version "20"
:group 'ps-print-miscellany)