Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Virtual Printer Driver for Windows

can you please help me with the following questions...

  • If I need a virtual printer that will convert a PostScript stream to a different format, do I have to implement a virtual printer from scratch or implement a rendering plug-in?
  • The rendering plug-in seems to support only certain customizations. Also the data invariably goes to the spooler which is not needed in this case.
  • If I implement a virtual printer driver does it completely replace the Microsoft PostScript Driver or the Microsoft Universal Driver?
  • Since my driver is virtual, does it matter if I write a PostScript compliant or a Universal Driver compliant one?
  • Any other method to convert a printed document to a custom document format apart from implementing a virtual printer driver? Can I hook on as a port monitor or something? From what I could understand I guess not.
like image 678
bitsbunny Avatar asked Feb 03 '10 08:02

bitsbunny


People also ask

How do I create a virtual printer driver?

Yes, it's possible to create virtual printers. Please open Devices and Printers on the Start Menu, click on Add a printer, select Add a local printer, then select Use an existing port FILE: (Print to File), after that select a printer driver you'd like and finish the wizard.

What is a virtual printer driver?

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.

How do I add a virtual printer in Windows 10?

Windows 10Right-click the Windows (Start) icon, and click Settings. In the Windows Settings dialog, click Devices. In the Bluetooth & other devices dialog, click Printers & scanners. In the Printers & scanners dialog, uncheck the Let Windows manage my default printer box, then click Add a printer or scanner.

How can I install a printer without the CD?

Simply plug the USB cable from your printer into an available USB port on your PC, and turn the printer on. Select the Start button, then select Settings >Devices >Printers & scanners. Select Add a printer or scanner. Wait for it to find nearby printers, then choose the one you want to use, and select Add device.


1 Answers

What you need is a port monitor. You can create a virtual printer using the Microsoft Postscript driver found in the WDK. You don't need to provide any code for this part, just an INF and PPD file to describe your virtual printer. Once you have that working and installed, users will then see your virtual printer when they print from an app. This printer will produce a stream of Postscript like any standard Postscript printer, which will then be sent to the printer's port monitor.

Now add a port monitor to handle converting the Postscript stream to whatever format you need. Port monitors are considerably easier to deal with than print drivers.

EDIT: Andy points out in the comments that v4 (ie, Win8) print drivers don't support custom port monitors. However, v3 drivers will still work in Win8.

like image 64
Carey Gregory Avatar answered Sep 29 '22 08:09

Carey Gregory