can you please help me with the following questions...
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With