File: draft.ps

package info (click to toggle)
pslib 0.4.3-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,660 kB
  • ctags: 1,154
  • sloc: sh: 10,013; ansic: 9,387; makefile: 240
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