Variable: ps-print-background-image
ps-print-background-image is a customizable variable defined in
ps-print.el.gz.
Value
nil
Documentation
EPS image list to be printed on background.
The elements are:
(FILENAME X Y XSCALE YSCALE ROTATION PAGES...)
FILENAME is a file name which contains an EPS image or some PostScript programming like EPS. FILENAME is ignored, if it doesn't exist or is read protected.
X and Y are relative positions on paper to put the image. If X and Y are nil, the image is centered on paper.
XSCALE and YSCALE are scale factor to be applied to image before printing. If XSCALE and YSCALE are nil, the original size is used.
ROTATION is the image rotation angle; if nil, the default is 0.
PAGES designates the page to print background image. PAGES may be a number or a cons cell (FROM . TO) designating FROM page to TO page. If PAGES is nil, print background image on all pages.
X, Y, XSCALE, YSCALE and ROTATION may be a floating point number, an integer number or a string. If it is a string, the string should contain PostScript programming that returns a float or integer value.
For example, if you wish to print an EPS image on all pages use:
(("~/images/EPS-image.ps"))
This variable was added, or its default value changed, in Emacs 20.
Source Code
;; Defined in /usr/src/emacs/lisp/ps-print.el.gz
(defcustom ps-print-background-image nil
"EPS image list to be printed on background.
The elements are:
(FILENAME X Y XSCALE YSCALE ROTATION PAGES...)
FILENAME is a file name which contains an EPS image or some PostScript
programming like EPS.
FILENAME is ignored, if it doesn't exist or is read protected.
X and Y are relative positions on paper to put the image.
If X and Y are nil, the image is centered on paper.
XSCALE and YSCALE are scale factor to be applied to image before printing.
If XSCALE and YSCALE are nil, the original size is used.
ROTATION is the image rotation angle; if nil, the default is 0.
PAGES designates the page to print background image.
PAGES may be a number or a cons cell (FROM . TO) designating FROM page to TO
page.
If PAGES is nil, print background image on all pages.
X, Y, XSCALE, YSCALE and ROTATION may be a floating point number, an integer
number or a string. If it is a string, the string should contain PostScript
programming that returns a float or integer value.
For example, if you wish to print an EPS image on all pages use:
((\"~/images/EPS-image.ps\"))"
:type '(repeat
(list
(file :tag "EPS File")
(choice :tag "X" (const :tag "default" nil) number string)
(choice :tag "Y" (const :tag "default" nil) number string)
(choice :tag "X Scale" (const :tag "default" nil) number string)
(choice :tag "Y Scale" (const :tag "default" nil) number string)
(choice :tag "Rotation" (const :tag "default" nil) number string)
(repeat :tag "Pages" :inline t
(radio (integer :tag "Page")
(cons :tag "Range"
(integer :tag "From")
(integer :tag "To"))))))
:version "20"
:group 'ps-print-background)