mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] Watermarks?


Chronological Thread 
  • From: David Teller <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] Watermarks?
  • Date: Sun, 22 Feb 2009 19:00:05 +0100

Hi Paul,
Thanks for the PS trick. That's a bit too low-level for my tastes,
though. I'd rather use the graphics primitives of TeXmacs for this
purpose, if I can find the documentation.

Cheers,
David


On Tue, 2009-02-17 at 22:33 +0000, Paul Zarucki wrote:
> Hi David,
>
> I don't know how to do this in Texmacs, but, if you save the document
> as a postscript file, it is not too difficult to add some postscript
> code which overprints/underprints a watermark (or anything you want,
> e.g. a letterhead). Then use ps2pdf or Ghostscript to convert the
> postscript file to PDF or just print it directly.
>
> For example, the following postscript fragment prints a diagonal
> "Confidential" across the page.
> gsave
> 1 1 scale
> /Helvetica_Bold findfont
> 120 scalefont setfont
> 100 100 moveto
> 55 rotate
> 0 setlinewidth
> (Confidential) true charpath stroke
> grestore
> Open the postscript file in a text editor and insert the above code
> after every line containing the string "%%EndPageSetup" (which occurs
> at the start of each page).
>
> You can use a shell script to automate the process. In combination
> with Samba you can even create a virtual printer to do the job - just
> print to the virtual printer and out pops your document (or postscript
> or PDF file) with the desired watermark on every page! (We use this
> method for printing on headed notepaper where the printer only
> contains plain paper).
>
> Paul.
>
> David Teller wrote:
> > Hi everyone,
> >
> > Firstly many thanks to the TeXmacs team. Not only has it succeeded in
> > getting my father away from Word, but it has also succeeded in getting
> > me away from LaTeX, which wasn't an easy task.
> >
> > I'm currently looking for a way to print some watermark on pages (e.g.
> > the word "Confidential", printed in light gray, at a 60 degrees angle,
> > in the background). Is there a way to do this? I'm not afraid to code a
> > short macro for this purpose.
> >
> > Thanks,
> > David
> >
> >
> >
>
> --
>
>
> Electronic Equipments Ltd.
> 101 Ridgeway Avenue, Dunstable, Bedfordshire, LU5 4QN, United Kingdom
> T: +44 (0) 1582 511335 - F: +44 (0) 870 235 1877
> E: address@hidden
> W: www.electronic-equipments.co.uk
>
> Technical Services
>
>
--
David Teller-Rajchenbach
Security of Distributed Systems
http://www.univ-orleans.fr/lifo/Members/David.Teller
« Ce matin Un crétin A tué un chercheur. » (air connu)
Latest News of French Research: System being liquidated. Researchers angry.




Archive powered by MHonArc 2.6.19.

Top of page