Printer Driver : Chaning the format of document before it is printed

Hi All,

I Want to change the format of any document being printed to a specified
format before it is actually printed. So I think I need to catch the data
that has to be printed before it goes to the spooler so that the data can be
changed and sent to spooler, which then sends data to the actual hardware.

After going through the DDK documentation of printer drivers, I feel that
writing a rendering plug-in as user mode .dll will do the job.

Is the above approach correct one? and is there anything to do at kernel
level? And does the DDK sample watermark under src\oemdll\printer help in
doing the job?

Any information is helpful.

Thanks and regards,
Kedar.

You are right !

The print data needs to undergo modification according to your
requirement of the print feature.
This module of processing is called Print Processor.

Thanks and Regards,
Madhukar Rupakumar

Wipro Technologies
Bangalore 560100 India
Ph: +91-080- 8520408 extn 6351
Mob : +91-98457 57900
xxxxx@wipro.com


-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of kedar
Sent: Monday, October 11, 2004 11:43 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Printer Driver : Chaning the format of document before
it is printed

Hi All,

I Want to change the format of any document being printed to a specified

format before it is actually printed. So I think I need to catch the
data
that has to be printed before it goes to the spooler so that the data
can be
changed and sent to spooler, which then sends data to the actual
hardware.

After going through the DDK documentation of printer drivers, I feel
that
writing a rendering plug-in as user mode .dll will do the job.

Is the above approach correct one? and is there anything to do at kernel

level? And does the DDK sample watermark under src\oemdll\printer help
in
doing the job?

Any information is helpful.

Thanks and regards,
Kedar.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@wipro.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Your approach is right. There are no kernel stuff involved unless you
are looking for NT4.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of kedar
Sent: Monday, October 11, 2004 11:43 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Printer Driver : Chaning the format of document before
it is printed

Hi All,

I Want to change the format of any document being printed to a specified

format before it is actually printed. So I think I need to catch the
data
that has to be printed before it goes to the spooler so that the data
can be
changed and sent to spooler, which then sends data to the actual
hardware.

After going through the DDK documentation of printer drivers, I feel
that
writing a rendering plug-in as user mode .dll will do the job.

Is the above approach correct one? and is there anything to do at kernel

level? And does the DDK sample watermark under src\oemdll\printer help
in
doing the job?

Any information is helpful.

Thanks and regards,
Kedar.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@wipro.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

What?? He doesn’t have to be writing any print processor. Print
Processor does page level management and not
Page content stuff generation,for which he has to go for rendering
plugin as he is intending to do.

Thanks
Vipin

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Madhukar
Rupakumar (WT01 - EMBEDDED & PRODUCT ENGINEERING SOLUTIONS)
Sent: Monday, October 11, 2004 11:52 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver : Chaning the format of document
before it is printed

You are right !

The print data needs to undergo modification according to your
requirement of the print feature. This module of processing is called
Print Processor.

Thanks and Regards,
Madhukar Rupakumar

Wipro Technologies
Bangalore 560100 India
Ph: +91-080- 8520408 extn 6351
Mob : +91-98457 57900
xxxxx@wipro.com


-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of kedar
Sent: Monday, October 11, 2004 11:43 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Printer Driver : Chaning the format of document before
it is printed

Hi All,

I Want to change the format of any document being printed to a specified

format before it is actually printed. So I think I need to catch the
data
that has to be printed before it goes to the spooler so that the data
can be
changed and sent to spooler, which then sends data to the actual
hardware.

After going through the DDK documentation of printer drivers, I feel
that
writing a rendering plug-in as user mode .dll will do the job.

Is the above approach correct one? and is there anything to do at kernel

level? And does the DDK sample watermark under src\oemdll\printer help
in
doing the job?

Any information is helpful.

Thanks and regards,
Kedar.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@wipro.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’ To unsubscribe send a blank email to xxxxx@lists.osr.com

Oops ! I mistook the “format of the document” in the sense of page level
manipulation itself !!
Such as printing multiple pages in a single doc and stuff like that.

Thanks and Regards,
Madhukar Rupakumar


-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of vipin aravind
(WT01 - EMBEDDED & PRODUCT ENGINEERING SOLUTIONS)
Sent: Monday, October 11, 2004 12:08 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver : Chaning the format of document
before it is printed

What?? He doesn’t have to be writing any print processor. Print
Processor does page level management and not
Page content stuff generation,for which he has to go for rendering
plugin as he is intending to do.

Thanks
Vipin

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Madhukar
Rupakumar (WT01 - EMBEDDED & PRODUCT ENGINEERING SOLUTIONS)
Sent: Monday, October 11, 2004 11:52 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver : Chaning the format of document
before it is printed

You are right !

The print data needs to undergo modification according to your
requirement of the print feature. This module of processing is called
Print Processor.

Thanks and Regards,
Madhukar Rupakumar

Wipro Technologies
Bangalore 560100 India
Ph: +91-080- 8520408 extn 6351
Mob : +91-98457 57900
xxxxx@wipro.com


-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of kedar
Sent: Monday, October 11, 2004 11:43 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Printer Driver : Chaning the format of document before
it is printed

Hi All,

I Want to change the format of any document being printed to a specified

format before it is actually printed. So I think I need to catch the
data
that has to be printed before it goes to the spooler so that the data
can be
changed and sent to spooler, which then sends data to the actual
hardware.

After going through the DDK documentation of printer drivers, I feel
that
writing a rendering plug-in as user mode .dll will do the job.

Is the above approach correct one? and is there anything to do at kernel

level? And does the DDK sample watermark under src\oemdll\printer help
in
doing the job?

Any information is helpful.

Thanks and regards,
Kedar.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@wipro.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’ To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Develop a PostScript printer pseudo-driver. Then do your transformations on
PostScript text, and send it to real printer.

Otherwise, you will drown in lots of tiny nasty details in lots of
different apps.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “kedar”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Monday, October 11, 2004 10:13 AM
Subject: [ntdev] Printer Driver : Chaning the format of document before it is
printed

> Hi All,
>
> I Want to change the format of any document being printed to a specified
> format before it is actually printed. So I think I need to catch the data
> that has to be printed before it goes to the spooler so that the data can be
> changed and sent to spooler, which then sends data to the actual hardware.
>
> After going through the DDK documentation of printer drivers, I feel that
> writing a rendering plug-in as user mode .dll will do the job.
>
> Is the above approach correct one? and is there anything to do at kernel
> level? And does the DDK sample watermark under src\oemdll\printer help in
> doing the job?
>
> Any information is helpful.
>
> Thanks and regards,
> Kedar.
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

And what if the printer doesn’t support PS ? This wouldn’t work …

-g

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Monday, October 11, 2004 4:18 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Printer Driver : Chaning the format of document before
it is printed

Develop a PostScript printer pseudo-driver. Then do your transformations
on PostScript text, and send it to real printer.

Otherwise, you will drown in lots of tiny nasty details in lots of
different apps.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “kedar”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Monday, October 11, 2004 10:13 AM
Subject: [ntdev] Printer Driver : Chaning the format of document before it
is printed

> Hi All,
>
> I Want to change the format of any document being printed to a specified
> format before it is actually printed. So I think I need to catch the data
> that has to be printed before it goes to the spooler so that the data can
be
> changed and sent to spooler, which then sends data to the actual hardware.
>
> After going through the DDK documentation of printer drivers, I feel that
> writing a rendering plug-in as user mode .dll will do the job.
>
> Is the above approach correct one? and is there anything to do at kernel
> level? And does the DDK sample watermark under src\oemdll\printer help in
> doing the job?
>
> Any information is helpful.
>
> Thanks and regards,
> Kedar.
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@cisco.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

OP hasn’t mentioned what format he wants DDI to be cooked into. It’s
upto his engine code.
So why are we on to assumptions?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Girish Kulkarni
Sent: Monday, October 11, 2004 4:29 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver : Chaning the format of document
before it is printed

And what if the printer doesn’t support PS ? This wouldn’t work …

-g

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Monday, October 11, 2004 4:18 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Printer Driver : Chaning the format of document
before it is printed

Develop a PostScript printer pseudo-driver. Then do your
transformations on PostScript text, and send it to real printer.

Otherwise, you will drown in lots of tiny nasty details in lots of
different apps.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “kedar”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Monday, October 11, 2004 10:13 AM
Subject: [ntdev] Printer Driver : Chaning the format of document before
it is printed

> Hi All,
>
> I Want to change the format of any document being printed to a
> specified format before it is actually printed. So I think I need to
> catch the data that has to be printed before it goes to the spooler so

> that the data can
be
> changed and sent to spooler, which then sends data to the actual
> hardware.
>
> After going through the DDK documentation of printer drivers, I feel
> that writing a rendering plug-in as user mode .dll will do the job.
>
> Is the above approach correct one? and is there anything to do at
> kernel level? And does the DDK sample watermark under
> src\oemdll\printer help in doing the job?
>
> Any information is helpful.
>
> Thanks and regards,
> Kedar.
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@cisco.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@wipro.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

Hi Max,

Do you mean to say no need of rendering plug-in? I am sorry if I am wrong as
I do not have much knowledge on Printer drivers.

Is there any sample code that helps to beging with and how much time can it
take to develop this post secript pseudo driver.

Thanks and regards,
Kedar.

“Maxim S. Shatskih” wrote in message
news:xxxxx@ntdev…
> Develop a PostScript printer pseudo-driver. Then do your
> transformations on
> PostScript text, and send it to real printer.
>
> Otherwise, you will drown in lots of tiny nasty details in lots of
> different apps.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “kedar”
> Newsgroups: ntdev
> To: “Windows System Software Devs Interest List”
> Sent: Monday, October 11, 2004 10:13 AM
> Subject: [ntdev] Printer Driver : Chaning the format of document before it
> is
> printed
>
>
>> Hi All,
>>
>> I Want to change the format of any document being printed to a specified
>> format before it is actually printed. So I think I need to catch the
>> data
>> that has to be printed before it goes to the spooler so that the data can
>> be
>> changed and sent to spooler, which then sends data to the actual
>> hardware.
>>
>> After going through the DDK documentation of printer drivers, I feel that
>> writing a rendering plug-in as user mode .dll will do the job.
>>
>> Is the above approach correct one? and is there anything to do at kernel
>> level? And does the DDK sample watermark under src\oemdll\printer help
>> in
>> doing the job?
>>
>> Any information is helpful.
>>
>> Thanks and regards,
>> Kedar.
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>

Well, as far as i understand, if he implements a PostScript printer
pseudo-driver and then does transformations on PostScript text, the final
output that goes to the printer would be PostScript again (unless i am
missing something here). Though a lot of printers do support PS, and most of
the Lasers do, but there are enough low end printers that do not support PS
and this solution might not work in that case.

Also, if the OP can specify what kind of change he wants to do to the
document, members on the list can suggest if a plug-in is a good idea or
not.

-g

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@wipro.com
Sent: Monday, October 11, 2004 4:42 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver : Chaning the format of document before
it is printed

OP hasn’t mentioned what format he wants DDI to be cooked into. It’s upto
his engine code.
So why are we on to assumptions?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Girish Kulkarni
Sent: Monday, October 11, 2004 4:29 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver : Chaning the format of document before
it is printed

And what if the printer doesn’t support PS ? This wouldn’t work …

-g

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Monday, October 11, 2004 4:18 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Printer Driver : Chaning the format of document before
it is printed

Develop a PostScript printer pseudo-driver. Then do your transformations
on PostScript text, and send it to real printer.

Otherwise, you will drown in lots of tiny nasty details in lots of
different apps.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “kedar”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Monday, October 11, 2004 10:13 AM
Subject: [ntdev] Printer Driver : Chaning the format of document before it
is printed

> Hi All,
>
> I Want to change the format of any document being printed to a
> specified format before it is actually printed. So I think I need to
> catch the data that has to be printed before it goes to the spooler so

> that the data can
be
> changed and sent to spooler, which then sends data to the actual
> hardware.
>
> After going through the DDK documentation of printer drivers, I feel
> that writing a rendering plug-in as user mode .dll will do the job.
>
> Is the above approach correct one? and is there anything to do at
> kernel level? And does the DDK sample watermark under
> src\oemdll\printer help in doing the job?
>
> Any information is helpful.
>
> Thanks and regards,
> Kedar.
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@cisco.com To unsubscribe
send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@wipro.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Ofcourse, there are lot of convertors that can convert postscript data
to format of your choice.That is no the issue. But why do you want to go
through the Intermediate step of postscript generation in the first
step?

Sounds to me like inventing and then reinventing the wheel :slight_smile:

Vipin

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Girish Kulkarni
Sent: Monday, October 11, 2004 5:25 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver : Chaning the format of document
before it is printed

Well, as far as i understand, if he implements a PostScript printer
pseudo-driver and then does transformations on PostScript text, the
final output that goes to the printer would be PostScript again (unless
i am missing something here). Though a lot of printers do support PS,
and most of the Lasers do, but there are enough low end printers that do
not support PS and this solution might not work in that case.

Also, if the OP can specify what kind of change he wants to do to the
document, members on the list can suggest if a plug-in is a good idea or
not.

-g

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@wipro.com
Sent: Monday, October 11, 2004 4:42 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver : Chaning the format of document
before it is printed

OP hasn’t mentioned what format he wants DDI to be cooked into. It’s
upto his engine code. So why are we on to assumptions?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Girish Kulkarni
Sent: Monday, October 11, 2004 4:29 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver : Chaning the format of document
before it is printed

And what if the printer doesn’t support PS ? This wouldn’t work …

-g

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Monday, October 11, 2004 4:18 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Printer Driver : Chaning the format of document
before it is printed

Develop a PostScript printer pseudo-driver. Then do your
transformations on PostScript text, and send it to real printer.

Otherwise, you will drown in lots of tiny nasty details in lots of
different apps.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “kedar”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Monday, October 11, 2004 10:13 AM
Subject: [ntdev] Printer Driver : Chaning the format of document before
it is printed

> Hi All,
>
> I Want to change the format of any document being printed to a
> specified format before it is actually printed. So I think I need to
> catch the data that has to be printed before it goes to the spooler so

> that the data can
be
> changed and sent to spooler, which then sends data to the actual
> hardware.
>
> After going through the DDK documentation of printer drivers, I feel
> that writing a rendering plug-in as user mode .dll will do the job.
>
> Is the above approach correct one? and is there anything to do at
> kernel level? And does the DDK sample watermark under
> src\oemdll\printer help in doing the job?
>
> Any information is helpful.
>
> Thanks and regards,
> Kedar.
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@cisco.com To
unsubscribe
send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@wipro.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@wipro.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Exactly. Why go the postscript way, when it *could* be lot simpler by
putting in a plug-in ? The main intent of the plug-ins was to give the
driver writer lot of flexibility in each phase of the print process and be
able to customize.

Kedar, you also need to look at which version of Windows you want to target
this for. Customizing printer drivers for 9x platforms is a nightmare!

-g

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@wipro.com
Sent: Monday, October 11, 2004 5:35 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver : Chaning the format of document before
it is printed

Ofcourse, there are lot of convertors that can convert postscript data to
format of your choice.That is no the issue. But why do you want to go
through the Intermediate step of postscript generation in the first step?

Sounds to me like inventing and then reinventing the wheel :slight_smile:

Vipin

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Girish Kulkarni
Sent: Monday, October 11, 2004 5:25 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver : Chaning the format of document before
it is printed

Well, as far as i understand, if he implements a PostScript printer
pseudo-driver and then does transformations on PostScript text, the final
output that goes to the printer would be PostScript again (unless i am
missing something here). Though a lot of printers do support PS, and most of
the Lasers do, but there are enough low end printers that do not support PS
and this solution might not work in that case.

Also, if the OP can specify what kind of change he wants to do to the
document, members on the list can suggest if a plug-in is a good idea or
not.

-g

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@wipro.com
Sent: Monday, October 11, 2004 4:42 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver : Chaning the format of document before
it is printed

OP hasn’t mentioned what format he wants DDI to be cooked into. It’s upto
his engine code. So why are we on to assumptions?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Girish Kulkarni
Sent: Monday, October 11, 2004 4:29 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver : Chaning the format of document before
it is printed

And what if the printer doesn’t support PS ? This wouldn’t work …

-g

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Monday, October 11, 2004 4:18 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Printer Driver : Chaning the format of document before
it is printed

Develop a PostScript printer pseudo-driver. Then do your transformations
on PostScript text, and send it to real printer.

Otherwise, you will drown in lots of tiny nasty details in lots of
different apps.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “kedar”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Monday, October 11, 2004 10:13 AM
Subject: [ntdev] Printer Driver : Chaning the format of document before it
is printed

> Hi All,
>
> I Want to change the format of any document being printed to a
> specified format before it is actually printed. So I think I need to
> catch the data that has to be printed before it goes to the spooler so

> that the data can
be
> changed and sent to spooler, which then sends data to the actual
> hardware.
>
> After going through the DDK documentation of printer drivers, I feel
> that writing a rendering plug-in as user mode .dll will do the job.
>
> Is the above approach correct one? and is there anything to do at
> kernel level? And does the DDK sample watermark under
> src\oemdll\printer help in doing the job?
>
> Any information is helpful.
>
> Thanks and regards,
> Kedar.
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@cisco.com To unsubscribe
send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@wipro.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@wipro.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

For now we need it for Windows 2000. So it is quite difficult to write this
kind of plug-ins?

Thanks and Regards,
Kedar.

“Girish Kulkarni (kulkis)” wrote in message
news:xxxxx@ntdev…
> Exactly. Why go the postscript way, when it could be lot simpler by
> putting in a plug-in ? The main intent of the plug-ins was to give the
> driver writer lot of flexibility in each phase of the print process and be
> able to customize.
>
> Kedar, you also need to look at which version of Windows you want to
> target
> this for. Customizing printer drivers for 9x platforms is a nightmare!
>
> -g
>
>
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of
> xxxxx@wipro.com
> Sent: Monday, October 11, 2004 5:35 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Printer Driver : Chaning the format of document
> before
> it is printed
>
>
> Ofcourse, there are lot of convertors that can convert postscript data to
> format of your choice.That is no the issue. But why do you want to go
> through the Intermediate step of postscript generation in the first step?
>
> Sounds to me like inventing and then reinventing the wheel :slight_smile:
>
> Vipin
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Girish Kulkarni
> Sent: Monday, October 11, 2004 5:25 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Printer Driver : Chaning the format of document
> before
> it is printed
>
>
> Well, as far as i understand, if he implements a PostScript printer
> pseudo-driver and then does transformations on PostScript text, the final
> output that goes to the printer would be PostScript again (unless i am
> missing something here). Though a lot of printers do support PS, and most
> of
> the Lasers do, but there are enough low end printers that do not support
> PS
> and this solution might not work in that case.
>
> Also, if the OP can specify what kind of change he wants to do to the
> document, members on the list can suggest if a plug-in is a good idea or
> not.
>
> -g
>
>
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of
> xxxxx@wipro.com
> Sent: Monday, October 11, 2004 4:42 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Printer Driver : Chaning the format of document
> before
> it is printed
>
>
> OP hasn’t mentioned what format he wants DDI to be cooked into. It’s upto
> his engine code. So why are we on to assumptions?
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Girish Kulkarni
> Sent: Monday, October 11, 2004 4:29 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Printer Driver : Chaning the format of document
> before
> it is printed
>
>
> And what if the printer doesn’t support PS ? This wouldn’t work …
>
> -g
>
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
> Sent: Monday, October 11, 2004 4:18 PM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Printer Driver : Chaning the format of document
> before
> it is printed
>
> Develop a PostScript printer pseudo-driver. Then do your
> transformations
> on PostScript text, and send it to real printer.
>
> Otherwise, you will drown in lots of tiny nasty details in lots of
> different apps.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “kedar”
> Newsgroups: ntdev
> To: “Windows System Software Devs Interest List”
> Sent: Monday, October 11, 2004 10:13 AM
> Subject: [ntdev] Printer Driver : Chaning the format of document before it
> is printed
>
>
>> Hi All,
>>
>> I Want to change the format of any document being printed to a
>> specified format before it is actually printed. So I think I need to
>> catch the data that has to be printed before it goes to the spooler so
>
>> that the data can
> be
>> changed and sent to spooler, which then sends data to the actual
>> hardware.
>>
>> After going through the DDK documentation of printer drivers, I feel
>> that writing a rendering plug-in as user mode .dll will do the job.
>>
>> Is the above approach correct one? and is there anything to do at
>> kernel level? And does the DDK sample watermark under
>> src\oemdll\printer help in doing the job?
>>
>> Any information is helpful.
>>
>> Thanks and regards,
>> Kedar.
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
>> unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@cisco.com To unsubscribe
> send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@wipro.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag argument:
> ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@wipro.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>

The documentation is pretty good in the DDK. I believe it’s quite easy and
straightforward…

-g

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of kedar
Sent: Monday, October 11, 2004 6:05 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Printer Driver : Chaning the format of document before
it is printed

For now we need it for Windows 2000. So it is quite difficult to write this
kind of plug-ins?

Thanks and Regards,
Kedar.

“Girish Kulkarni (kulkis)” wrote in message
news:xxxxx@ntdev…
> Exactly. Why go the postscript way, when it could be lot simpler by
> putting in a plug-in ? The main intent of the plug-ins was to give the
> driver writer lot of flexibility in each phase of the print process
> and be able to customize.
>
> Kedar, you also need to look at which version of Windows you want to
> target this for. Customizing printer drivers for 9x platforms is a
> nightmare!
>
> -g
>
>
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of
> xxxxx@wipro.com
> Sent: Monday, October 11, 2004 5:35 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Printer Driver : Chaning the format of document
> before it is printed
>
>
> Ofcourse, there are lot of convertors that can convert postscript data
> to format of your choice.That is no the issue. But why do you want to
> go through the Intermediate step of postscript generation in the first
step?
>
> Sounds to me like inventing and then reinventing the wheel :slight_smile:
>
> Vipin
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Girish
> Kulkarni
> Sent: Monday, October 11, 2004 5:25 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Printer Driver : Chaning the format of document
> before it is printed
>
>
> Well, as far as i understand, if he implements a PostScript printer
> pseudo-driver and then does transformations on PostScript text, the
> final output that goes to the printer would be PostScript again
> (unless i am missing something here). Though a lot of printers do
> support PS, and most of the Lasers do, but there are enough low end
> printers that do not support PS and this solution might not work in
> that case.
>
> Also, if the OP can specify what kind of change he wants to do to the
> document, members on the list can suggest if a plug-in is a good idea
> or not.
>
> -g
>
>
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of
> xxxxx@wipro.com
> Sent: Monday, October 11, 2004 4:42 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Printer Driver : Chaning the format of document
> before it is printed
>
>
> OP hasn’t mentioned what format he wants DDI to be cooked into. It’s
> upto his engine code. So why are we on to assumptions?
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Girish
> Kulkarni
> Sent: Monday, October 11, 2004 4:29 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Printer Driver : Chaning the format of document
> before it is printed
>
>
> And what if the printer doesn’t support PS ? This wouldn’t work …
>
> -g
>
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
> Shatskih
> Sent: Monday, October 11, 2004 4:18 PM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Printer Driver : Chaning the format of document
> before it is printed
>
> Develop a PostScript printer pseudo-driver. Then do your
> transformations on PostScript text, and send it to real printer.
>
> Otherwise, you will drown in lots of tiny nasty details in lots of
> different apps.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “kedar”
> Newsgroups: ntdev
> To: “Windows System Software Devs Interest List”
> Sent: Monday, October 11, 2004 10:13 AM
> Subject: [ntdev] Printer Driver : Chaning the format of document
> before it is printed
>
>
>> Hi All,
>>
>> I Want to change the format of any document being printed to a
>> specified format before it is actually printed. So I think I need to
>> catch the data that has to be printed before it goes to the spooler
>> so
>
>> that the data can
> be
>> changed and sent to spooler, which then sends data to the actual
>> hardware.
>>
>> After going through the DDK documentation of printer drivers, I feel
>> that writing a rendering plug-in as user mode .dll will do the job.
>>
>> Is the above approach correct one? and is there anything to do at
>> kernel level? And does the DDK sample watermark under
>> src\oemdll\printer help in doing the job?
>>
>> Any information is helpful.
>>
>> Thanks and regards,
>> Kedar.
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
>> unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@cisco.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@wipro.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag argument:
> ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@wipro.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@cisco.com To unsubscribe
send a blank email to xxxxx@lists.osr.com

Sorry, I have some UNIX background with printing. In UNIX, all printers are
PostScript :slight_smile: since PostScript is the internal langugage of printing
subsystem - like EMF for Windows.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From:
To: “Windows System Software Devs Interest List”
Sent: Monday, October 11, 2004 4:05 PM
Subject: RE: [ntdev] Printer Driver : Chaning the format of document before it
is printed

>
> Ofcourse, there are lot of convertors that can convert postscript data
> to format of your choice.That is no the issue. But why do you want to go
> through the Intermediate step of postscript generation in the first
> step?
>
> Sounds to me like inventing and then reinventing the wheel :slight_smile:
>
> Vipin
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Girish Kulkarni
> Sent: Monday, October 11, 2004 5:25 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Printer Driver : Chaning the format of document
> before it is printed
>
>
> Well, as far as i understand, if he implements a PostScript printer
> pseudo-driver and then does transformations on PostScript text, the
> final output that goes to the printer would be PostScript again (unless
> i am missing something here). Though a lot of printers do support PS,
> and most of the Lasers do, but there are enough low end printers that do
> not support PS and this solution might not work in that case.
>
> Also, if the OP can specify what kind of change he wants to do to the
> document, members on the list can suggest if a plug-in is a good idea or
> not.
>
> -g
>
>
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of
> xxxxx@wipro.com
> Sent: Monday, October 11, 2004 4:42 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Printer Driver : Chaning the format of document
> before it is printed
>
>
> OP hasn’t mentioned what format he wants DDI to be cooked into. It’s
> upto his engine code. So why are we on to assumptions?
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Girish Kulkarni
> Sent: Monday, October 11, 2004 4:29 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Printer Driver : Chaning the format of document
> before it is printed
>
>
> And what if the printer doesn’t support PS ? This wouldn’t work …
>
> -g
>
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
> Sent: Monday, October 11, 2004 4:18 PM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Printer Driver : Chaning the format of document
> before it is printed
>
> Develop a PostScript printer pseudo-driver. Then do your
> transformations on PostScript text, and send it to real printer.
>
> Otherwise, you will drown in lots of tiny nasty details in lots of
> different apps.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “kedar”
> Newsgroups: ntdev
> To: “Windows System Software Devs Interest List”
> Sent: Monday, October 11, 2004 10:13 AM
> Subject: [ntdev] Printer Driver : Chaning the format of document before
> it is printed
>
>
> > Hi All,
> >
> > I Want to change the format of any document being printed to a
> > specified format before it is actually printed. So I think I need to
> > catch the data that has to be printed before it goes to the spooler so
>
> > that the data can
> be
> > changed and sent to spooler, which then sends data to the actual
> > hardware.
> >
> > After going through the DDK documentation of printer drivers, I feel
> > that writing a rendering plug-in as user mode .dll will do the job.
> >
> > Is the above approach correct one? and is there anything to do at
> > kernel level? And does the DDK sample watermark under
> > src\oemdll\printer help in doing the job?
> >
> > Any information is helpful.
> >
> > Thanks and regards,
> > Kedar.
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
> > unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@cisco.com To
> unsubscribe
> send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@wipro.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag argument:
> ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@wipro.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>