Reputation: 12539
I am a novice to Windows printer driver, and would appreciate any pointers on the following.
I am comfortable with JPG encoding, as I am thinking of using open source tools like ImageMagick. But I am not sure where to start the enumeration and printing stuff.
BTW, Is Microsoft WDM DDK available for free download?
Upvotes: 0
Views: 1648
Reputation: 4235
You should use WMI to enumerate prints. See: http://www.codeproject.com/Articles/10539/Making-WMI-Queries-In-C To capture all print jobs as a file, it makes more sense to capture print jobs into a pdf file, as a print job might be more than one page. To do so, you need to include in your software a .pdf library. Try: http://libharu.sourceforge.net/
Upvotes: 0
Reputation: 1754
The Windows Driver Kit can be downloaded freely on MSDN.com
I'm no driver expert but have worked on Printer Port Monitors (see this StackOverflow question) to capture the output of standard printer drivers (Postscript) and convert them to PDF or TIF using Ghostscript (Ghostscript is available in an open source format, and can also output JPG) which is reasonably easy to do.
Upvotes: 1