how to develop a virtual Image Printer Driver ?

I am a beginner to WDk and new to this forum and needs your suggestions and advices in developing a virtual Image Printer Driver. That is converting Windows documents into image files, such as .tif, png, .bmp, .gif, or .jpg.
I have downloaded the latest WDK and read all the documents in \src\print. My questions are:

  1. The Bitmap sample code is the one I should use?
    I also need to configure documents and printers settings. Which samples I should follow? OEMUni and OEMUi ?
  2. The sample code of OEMUni, OEMUi and Bitmap are written in C++. Some other Print samples are written in C. Which one I should use? Since my work will be based on the samples, I have to follow the sample code. That means using C++???
  3. Is there any other way to convert the document to image file, such as based on Raw data or EMF data ?

Thank you in advance!

On Feb 5, 2008 4:41 PM, wrote:
> 1. The Bitmap sample code is the one I should use?

This is the route I went. It should be fairly easy to get it to cough
up a png or tiff instead. In the end I used one of the reserved fields
in the bmp header to store the last page # and converted it to tiff in
my application instead.

The biggest problem with this sample is that it is XP and newer only.
No Win2k support. :frowning:


Rune

Hi Rune,
Thank you for your info!
This sampe printer driver is used to generate a bitmap file.
Based on the bitmap file hdr, info hdr, color table, and raw data, It should be doable for me to convert the bitmap into tif, png, gif, or jpg. Am I right?
I hope you can give me more suggestions and advices!

Hi MPY! Me too doing the same job what you are doing… But i want to print everything to EMF and then to .jpg… Do you think that OEMUni or OEMUi or Bitmap samples could help us? But i have already posted this question and the reply is to see “Genprint” sample and call that dll to print everything to the EMF output… Sorry if i’m wrong…

Hi there,
I am a beginner and need suggestions and advices from expereinced experts. So my answer might be wrong.
If your target is to create EMF file, then you may need to use Genprint sample and concentrate on print proccessor.
If your target is to generate JPG file, you may need to use Bitmap sample. I don’t think you need to get EMF file before generating JPG file.
Again this might be wrong.
I hope somebody will answer this for you and Let me know if you get a nice suggestion.
Good luck!> Date: Wed, 6 Feb 2008 23:35:15 -0500> From: xxxxx@gmail.com> To: xxxxx@lists.osr.com> Subject: RE:[ntdev] how to develop a virtual Image Printer Driver ?> > Hi MPY! Me too doing the same job what you are doing… But i want to print everything to EMF and then to .jpg… Do you think that OEMUni or OEMUi or Bitmap samples could help us? But i have already posted this question and the reply is to see “Genprint” sample and call that dll to print everything to the EMF output… Sorry if i’m wrong… > > —> NTDEV is sponsored by OSR> > For our schedule of WDF, WDM, debugging and other seminars visit: > http://www.osr.com/seminars\> > To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


Connect and share in new ways with Windows Live.
http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008