如何查找打印用户的用户名或将其添加到使用 XPSDrv 打印的 XPS
有谁知道是否有一种简单方法可以在使用 XPSDrv 时将打印用户的用户名包含在 XPS 包中或驱动程序数据流中的任何标头中可访问的位置?通过在过滤器管道中使用过滤器(尽管在我看来这并不简单)?通过读取 TCP/IP 标头值?我用谷歌搜索了我的手指短试图找到一个合理的解决方案。
Does anyone know if there is a simple way to include the username of the printing user somewhere accessible either in the XPS package or in any header in the data stream from the driver when using XPSDrv? By using a filter in the filter pipeline (even though it is not simple in my opinion)? By reading TCP/IP header values? I have googled my fingers short trying find a reasonable solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简单的?不,不是真的。最好的选择可能是修改 XPS 驱动程序中的过滤器以执行以下操作:
这一切只是一个起点。我怀疑您需要深入研究 XPS 驱动程序的工作原理才能使其成为可靠的解决方案。
Simple? No, not really. Your best bet is probably to modify a filter in your XPS driver to do the following:
This is all just a starting point. I suspect you're going to need to delve into the details of how an XPS driver works in order to make this a reliable solution.
您可以将元数据存储在 XPS(核心属性)中,或者您也可以使用打印票证来实现此目的。
You can store meta data in de the XPS (Core Properties), or you could probably use the print ticket for this purpose too.