适用于 Windows 的虚拟打印机驱动程序 [英] Virtual Printer Driver for Windows

查看:81
本文介绍了适用于 Windows 的虚拟打印机驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能帮我解决以下问题吗...

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

  • 如果我需要将 PostScript 流转换为不同格式的虚拟打印机,我是否必须从头开始实施虚拟打印机或实施渲染插件?
  • 渲染插件似乎只支持某些自定义.此外,数据总是会进入在这种情况下不需要的假脱机程序.
  • 如果我实施虚拟打印机驱动程序,它是否会完全取代 Microsoft PostScript 驱动程序或 Microsoft 通用驱动程序?
  • 由于我的驱动程序是虚拟的,所以我编写符合 PostScript 的驱动程序还是符合通用驱动程序的驱动程序重要吗?
  • 除了实现虚拟打印机驱动程序之外,还有其他方法可以将打印的文档转换为自定义文档格式吗?我可以挂在端口监视器上吗?据我所知,我猜不是.

推荐答案

您需要的是端口监视器.您可以使用 WDK 中的 Microsoft Postscript 驱动程序创建虚拟打印机.您不需要为此部分提供任何代码,只需一个 INF 和 PPD 文件来描述您的虚拟打印机.安装并运行后,用户将在从应用程序打印时看到您的虚拟打印机.该打印机将像任何标准 Postscript 打印机一样生成 Postscript 流,然后将其发送到打印机的端口监视器.

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.

现在添加一个端口监视器来处理将 Postscript 流转换为您需要的任何格式.端口监视器比打印驱动程序更容易处理.

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.

Andy 在评论中指出 v4(即 Win8)打印驱动程序不支持自定义端口监视器.但是,v3 驱动程序仍然可以在 Win8 中运行.

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.

这篇关于适用于 Windows 的虚拟打印机驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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