Windows Print Processor是否可以强制后台打印数据类型 [英] Can a windows Print Processor force a spool data type

查看:237
本文介绍了Windows Print Processor是否可以强制后台打印数据类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用WDK 7.1示例开发Windows打印处理器。我想记录要打印的实际数据,并且希望以一致的格式(EMF)而不是基础打印机的RAW格式进行记录。会修改 EnumPrintProcessorDatatypes 以仅返回我想要的格式(即EMF),迫使打印机的应用程序/ GDI层使用该类型,从而使我能够始终以相同的格式进行记录?

I'm developing a Windows Print Processor using the WDK 7.1 sample. I'd like to log the actual data being printed and would prefer it to be done in a consistent format (EMF) rather than the RAW format of the underlying printer. Would modifying EnumPrintProcessorDatatypes to only return the format I want (i.e EMF) force application/GDI layer the printer to use that type and thereby enabling me to log it in the same format always?

推荐答案

此处的重要内容是:

1.确保禁用直接打印

2.确保启用了高级打印

The important stuff here is:
1. make sure direct printing is disabled
2. make sure advanced printing is enabled

如果驱动程序基于XPS,则作业将通过 XPSPRINT

If the driver is XPS based, the job will go thru the XPSPRINT pipeline, and never be formated as EMF.

您可以在下面的无证打印页面上找到有关何时使用EMF或RAW的更多信息:
http://www.undocprint.org/winspool/spool_files#when_is_raw_used

You can find more informataion on when EMF or RAW is used on the following Undocumented Printing page: http://www.undocprint.org/winspool/spool_files#when_is_raw_used

这篇关于Windows Print Processor是否可以强制后台打印数据类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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