public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] watermark PS files
@ 2006-10-05 16:27 Joseph
       [not found] ` <20061005194543.8ae5128a.hilse@web.de>
  0 siblings, 1 reply; 2+ messages in thread
From: Joseph @ 2006-10-05 16:27 UTC (permalink / raw
  To: gentoo-user

watermark to existing PS files (ex. for faxing etc.)
Does anybody knows how to do it?
I've run onto various scripts but didn't have much luck with most of
them.
This little postscript snippet prints CONFIDENTIAL diagonally across the
page:
--------example-----------
/wp$y 792 def
/wp$x 612 def
%-------Customize Here-------
/font /Helvetica-Bold def
/pointsize 96 def
/text1 (CONFIDENTIAL) def
%-------End Customization----
/center {dup stringwidth pop
2 div neg 0 rmoveto} def
wp$x 2 div wp$y 2 div pointsize 2 div sub moveto
.85 setgray
font findfont pointsize scalefont setfont
45 rotate
0 0 text1 center ashow
%
--------end example---------

but it needs to be inserted at the right spot or it will not work.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] watermark PS files
       [not found] ` <20061005194543.8ae5128a.hilse@web.de>
@ 2006-10-05 18:04   ` Joseph
  0 siblings, 0 replies; 2+ messages in thread
From: Joseph @ 2006-10-05 18:04 UTC (permalink / raw
  To: gentoo-user

> > watermark to existing PS files (ex. for faxing etc.)
> > Does anybody knows how to do it?
> 
> There are probably other options, but I would vote for using PDF for
> that. Convert your PS files to PDF (using ghostscript's ps2pdfN), then
> use pdftk for making versions with watermarks. Opposite to PS (which
> you can use to do strange things), that will work reliably.
> Caveat: I think pdftk needs gcj<4.0.0 for compilation & at runtime.

Thanks, sounds like a good solution, though you are right I need to to
recompile gcc with gcj

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-05 18:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-05 16:27 [gentoo-user] watermark PS files Joseph
     [not found] ` <20061005194543.8ae5128a.hilse@web.de>
2006-10-05 18:04   ` Joseph

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox