[Date Prev][Date Next] [Thread Prev][Thread Next]
[Date Index] [Thread Index] [New search]

Re: Watermark Postscript code



hi, charles,

you can achieve a watermark in Frame fairly easily.

1) on your master pages, create a short, wide text frame.  if you want, 
   rotate it 45 degrees.
   
2) create a color "Lt Grey" that is a low-percentage grey.

3) create a variable called "draft" (or some such); define it as "DRAFT"

4) create a pgf. called "watermark"; define its default font fairly large
   and its default font color as "Lt Grey"

5) in your master page's new text frame, change the style of the pgf 
   to a "watermark" pgf.   

6) insert variable "draft" into the "watermark" pgf in the text frame on
   the master pages.


+---------------------------+
|                           |
|                           |
|          +-------------------- variable "draft" defined as "DRAFT",
|          |                |    conditioned as "draft only" (NOTE: insert
|          |          .     |    a blank space after the variable, and do
|          |        ./  .   |    not condition the space or the pgf marker)
|          |      . /\    . |
|          |    ./    \ .<------ text frame, rotated; pgf style = "watermark"
|          |  .  \/   .     |    (default font  = a large pt size 
|          |.__   \ .       |     default color = Lt Grey)
|         .| \/\  .         |
|       .__V  \ .           |
|     .  \/__ .             |
|   .__   \ .               |
| .  \ \  .                 |
|   . \/.                   |
|     .                     |
|                           |
|                           |
|                           |
+---------------------------+
 
        Master Page


to easily turn off the watermark in subsequent printings, you can do
a couple of things:

   * apply a condition "draft only" to the variable "draft" on the master
     pages, then turn OFF condition "draft only" in your final print.
     
     OR
     
   * redefine variable "draft" to a single blank character " " before
     producing the final print.     
      
by using the "draft" variable for your watermark, you have the option of
customizing it easily as "DRAFT I", "DRAFT II", etc., over time.

another way to achieve the same result is to bypass the use of the "draft"
variable; instead, you could use autonumbering in your "watermark" pgf
style and assign the autonumber text as "DRAFT".  in this case, you would 
need to redefine the pgf style to have no autonumber when preparing the 
final print.  this solution also omits the need to use conditions.

in my experience, the cleanest implementation is to follow steps 1--6 and
then apply condition "draft only" to the variable.  this way, it is very
easy to toggle the condition OFF or ON as needed, without having to redefine
any variable or pgf style.

hth...

--- kmc

   
> X-igwMailID: f4ACgAP62214.U01
> From: Dowdell Charles <Charles.Dowdell@raymondcorp.com>
> To: "'framers@omsys.com'" <framers@omsys.com>
> Subject: Watermark Postscript code
> Date: Thu, 10 May 2001 08:43:21 -0400
> MIME-Version: 1.0
> X-Mail-Loop: 1
> 
> Where can I find a nice bit of postscript code to include a nice draft stamp
> diagonally across each of our book pages?
>  
> Our current print driver does not allow us to set it in "print setup."
>  
>  
> 
> Charlie Dowdell 
> The Raymond Corporation 
> Manager, Technical Publications
> (607-656-2638) 
> 
>  
> 
> ** To unsubscribe, send a message to majordomo@omsys.com **
> ** with "unsubscribe framers" (no quotes) in the body.   **


------------------------------------
K.A. McCord, Staff Technical Writer
kathy.mccord@windriver.com  
Vox: (831) 661-0246 x 229   
Fax: (831) 661-0159
------------------------------------



** To unsubscribe, send a message to majordomo@omsys.com **
** with "unsubscribe framers" (no quotes) in the body.   **