RE: Implementing watermarks in the print processor

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi!
It is not advisable to modify spoolers EMF as the format of spool file may
change in later releases.
I believe you were trying to draw from DrvDocumentEvent EndPage and End Page
event does not come in banding drivers. Typicaly color raster drivers are
banding drivers. In all other cases you will get DocumentEvent endPage and
you can draw watermark on Printer DC from there.
Other aproach may be to draw watermark from Printprocessor on printer DC but
in that case watermark will always be underpage.
If you are working on PS driver then you can inject PDL to get watermark see
watermark sample in DDK.

Hope this helps
-Naveen


"Adrien" wrote:

> I am trying to implement watermarks into the print processor. I previously
> had watermarks implemented into the drivers DrvDocumentEvent function using
> the device context supplied to this function, but when the print processors
> data type is EMF this function does not get called.
>
> I have tried creating an EMF and playing it back in the print processor but
> I am unable to get this to work as the spoolers EMF format is different to
> the standard EMF format.
>
> I would appreciate any help that could be provided that will help me
> implement watermarks into the print processor or driver when the data type is
> EMF
.



Relevant Pages

  • RE: Implementing watermarks in the print processor
    ... \par watermark sample in DDK. ... Typicaly color raster drivers are ... \par> I am trying to implement watermarks into the print processor. ... \par> data type is EMF this function does not get called. ...
    (microsoft.public.development.device.drivers)
  • RE: Implementing watermarks in the print processor
    ... The driver is not a PS ... or the documents data overwriting the watermark so I could not see it. ... At what stage in the printprocessor should I draw the watermark to the ... the watermark be a CompatibleBitmap or an EMF? ...
    (microsoft.public.development.device.drivers)
  • Re: repetition within randomization
    ... General advice is to use the middle bits, or use a real random number ... instances where I call rand(), there is little or no change. ... // draw a particular emf ...
    (microsoft.public.vc.mfc)
  • repetition within randomization
    ... instances where I call rand(), there is little or no change. ... // draw a particular emf ... compare previous values as a means to avoid repetition. ...
    (microsoft.public.vc.mfc)
  • Re: Printing to EMF/Creating EMF
    ... to be rendered to EMF files, so that I can take these EMF ... windows uses EMF as the format of the print job files. ... printers and printer drivers, print processor settings and suchlike, I ... I did find some virtual printer drivers that gave this functionality, ...
    (microsoft.public.win2000.printing)