File: draft.ps

package info (click to toggle)
pslib 0.4.8-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,808 kB
  • sloc: ansic: 9,602; sh: 4,382; makefile: 246
file content (16 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
% draft.ps
% This file contains a page hook to draw the word 'draft' on each page
% The PslibPageStartHook command expects to find the following on the stack.
% page number
% ury (upper right corner of page, y coordinate)
% urx (upper right corner of page, x coordinate)
% lly (lower left corner of page, y coordinate)
% llx (lower left corner of page, x coordinate)
% Use 'B' to define the command
/PslibPageBeginHook{
  /pagenumber exch def /ury exch def /urx exch def /lly exch def /llx exch def
	0.8 setgray
  /Helvetica findfont 144 scalefont setfont
	45 rotate 350 60 moveto
	(Draft) show
} B