~ubuntu-branches/ubuntu/karmic/pslib/karmic

« back to all changes in this revision

Viewing changes to data/draft.ps

  • Committer: Bazaar Package Importer
  • Author(s): Uwe Steinmann
  • Date: 2004-07-20 14:12:58 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040720141258-mlxkdblg8u8z90zl
Tags: 0.2.4-1
* New upstream version.
* Create unique internal template names (Closes: #260366)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
% draft.ps
 
2
% This file contains a page hook to draw the word 'draft' on each page
 
3
% The PslibPageStartHook command expects to find the following on the stack.
 
4
% page number
 
5
% ury (upper right corner of page, y coordinate)
 
6
% urx (upper right corner of page, x coordinate)
 
7
% lly (lower left corner of page, y coordinate)
 
8
% llx (lower left corner of page, x coordinate)
 
9
% Use 'B' to define the command
 
10
/PslibPageBeginHook{
 
11
  /pagenumber exch def /ury exch def /urx exch def /lly exch def /llx exch def
 
12
        0.8 setgray
 
13
  /Helvetica findfont 144 scalefont setfont
 
14
        45 rotate 350 60 moveto
 
15
        (Draft) show
 
16
} B