如何在 Windows 中创建虚拟打印机? [英] How to create a virtual printer in Windows?
问题描述
我想为 Windows 创建一个虚拟打印机驱动程序.我如何以及在哪里可以正确开始?WDK 有一些打印驱动程序示例,这些示例似乎不是很好的介绍.MSDN 似乎对新手也没有太大帮助.
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.
有很多适用于 Windows 的虚拟打印机(主要是它们生成 PDF),我想知道是否有人可以告诉我如何做同样的事情?
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.
谢谢.
推荐答案
当我这样做时(大约 12 年前)我从 postscript 驱动程序示例开始,替换了所有 postscript 特定的东西(在我的情况下,写到位图而不是生成 postscript 命令).
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.
这篇关于如何在 Windows 中创建虚拟打印机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!