Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using an Image as Watermark with prologue.ps

Status
Not open for further replies.

tgreer

Programmer
Oct 4, 2002
1,781
US
To the gentleman (and interested parties) who emailed me with this question:

How do I use an EPS image as a watermark, by placing code in Distiller's prologue.ps?

I was too quick with the "select all/delete" email option, losing your email/email address, so I'll post the answer here.

The code I sent you will work fine, I just neglected to show you how to split things up!

A sample prologue.ps file is available here:


The technique is exactly the same. You build a file object using the ReusableStreamDecode filter, which is subsequently used in a PostScript Form Dictionary.

Then you define a /BeginPage procedure which executes that form.

This way, whenever your PostScript programs perform a "showpage", the BeginPage procedure is called automatically, which executes the cached form.

The result is an image watermark on every page, with a neglible performance hit due to the form caching.


Thomas D. Greer
 
Can the watermark image be placed in the PS/PDF/EPS by a .bat file?
 
I don't think so, but describe the process as you envision it, and I'll comment further.



Thomas D. Greer
Providing PostScript & PDF
Training, Development & Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top