How to determine printer's postscript support using Win32 API?

为君一笑 提交于 2019-12-12 16:16:38

问题


I'm developing remote printing client (native Win32 app). It simply prints files that come from server. I wish to have the ability to programmatically check if printer supports Postscript before sending data to it.

How it can be done?

GETTECHNOLOGY escape doesn't help much. Say it returns "PCL XL" for HP printers that also support Postscript.


回答1:


I don't think there's any way to be certain from the Win32 API that a printer is a PostScript printer,if it accepts multiple Page Description Languages.

One reason is that there is no way in PostScript to switch languages, while this is possible on PCL printers. So PCL/PostScript printers appear as PCL printers and allow you to switch to PostScript by sending appropriate code.

Have you tried sending POSTSCRIPT_IDENITFY ? If the driver doesn't support that then it probably isn't a PostScript driver. I'm not able to check this unfortunately.



来源:https://stackoverflow.com/questions/29034610/how-to-determine-printers-postscript-support-using-win32-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!