Gentoo Archives: gentoo-user

From: Joseph <syscon@×××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] watermark PS files
Date: Thu, 05 Oct 2006 16:33:57
Message-Id: 1160065652.9128.4.camel@syscon2.sysconcept.ca
1 watermark to existing PS files (ex. for faxing etc.)
2 Does anybody knows how to do it?
3 I've run onto various scripts but didn't have much luck with most of
4 them.
5 This little postscript snippet prints CONFIDENTIAL diagonally across the
6 page:
7 --------example-----------
8 /wp$y 792 def
9 /wp$x 612 def
10 %-------Customize Here-------
11 /font /Helvetica-Bold def
12 /pointsize 96 def
13 /text1 (CONFIDENTIAL) def
14 %-------End Customization----
15 /center {dup stringwidth pop
16 2 div neg 0 rmoveto} def
17 wp$x 2 div wp$y 2 div pointsize 2 div sub moveto
18 .85 setgray
19 font findfont pointsize scalefont setfont
20 45 rotate
21 0 0 text1 center ashow
22 %
23 --------end example---------
24
25 but it needs to be inserted at the right spot or it will not work.
26
27 --
28 #Joseph
29 --
30 gentoo-user@g.o mailing list