Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a virtual printer in Windows?

I want to create a virtual printer driver for Windows. How and where can I start properly? The WDK has some printing drivers examples that do not seems a good introductory. MSDN also doesn't seems to be very helpful for a novice.

There are a lot of virtual printers for Windows out there (mostly they generate PDFs), I wonder if someone could tell my how can I do the same?

Any links to the elaborating documentations are appreciated in advance.

Thanks.

like image 845
Terminus Avatar asked Jun 19 '09 17:06

Terminus


People also ask

How do I add a virtual printer to my computer?

Go to Device Center, Virtual Printers and create a VP. Then go to Start/Run and type the IP Address of the Fiery. You should see the below. Douple click the VP and it will install on your PC.

What is virtual printer Windows?

A virtual printer is an application that replicates the software interface for a physical printer and allows the user to carry out various tasks without actually printing anything. Virtual printers work with print drivers that are coded to send their output to other applications rather than to a physical device.


2 Answers

When I did it (which about 12 years ago) I started with the postscript driver sample, replaced all the postscript-specific stuff (in my case, to write to a bitmap instead of generating postscript commands).

I also wrote a custom print monitor (the driver writes to the spooler, which write to a monitor): my monitor wrote to a file instead of e.g. to the parallel port.

However, printer driver architecture and/or the set of sample drivers may have changed since then.

like image 147
ChrisW Avatar answered Oct 30 '22 12:10

ChrisW


You can look to the 'minidriver' development in the from Microsoft (Microsoft MDT), that might help depending on your exact needs. If the port you need to deal with (ie: you are going to take the data from an existing printer driver and want to process) you could look to the source code for RedMon. It doesn't support Vista/Win7 but might point you in the right direction.

like image 28
Douglas Anderson Avatar answered Oct 30 '22 13:10

Douglas Anderson