Re: Is genprint print processor the right palce to insert a watermark ?

Thanks for the info Steve.

I was hoping to do this without getting involved in the printer driver
to keep the solution at as high a level as possible.

I think I have a solution hooking GDI calls and customising the genprint
print processor but it’ll need some more work to get it fully working
for all cases.

Any other suggestions would be welcome.

Steve Johnson wrote:

Abraham, Richard W wrote:

>I am trying to add a watermark page to all print jobs on our system, printed
>on any printer. If necessary we can lock down the system to only allow
>access to certain printers but would prefer not to.

You might try implementing an interface dll and handling the
DOCUMENTEVENT_CREATEDCPOST event in DrvDocumentEvent. At that point,
you should be able to write the watermark directly into the DC before
anything else is written there.

I’ve done similar stuff before. All you need to do is replace the
printer driver’s “Configuration File” entry in the registry, load the
“real” interface dll in your DllMain and then forward all Dev/DrvXxx
calls to the “real” dll.