如何在Windows中创建虚拟打印机? [英] How to create a virtual printer in Windows?

查看:426
本文介绍了如何在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年前),我从后记驱动程序样本开始,替换了所有后记特定的东西(在我的情况下,是写位图而不是生成后记命令)。

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆