我可以使用Java与Windows后台处理程序(打印)进行交互,如果是这样的话(库,...)?

问题描述:

我正在开展一个项目,我需要一个管理Windows上打印的应用程序(比如在图书馆或网吧中,客户点击打印,文档转到管理员PC,管理员允许或不去到打印机)。我有两个策略,第一个是用java开发一个应用程序(我不知道我是否可以使用JAVA与windows spooler(打印)进行交互以及难度级别),第二个是找到一个开源应用程序到整合到我的项目中。任何想法或建议都是受欢迎的,谢谢,抱歉我的英文不好。

Hi, i work on a project in wich i need an application that manages printing on windows (like in a library or cybercafe the client click on print and the document goes to the admin PC and the admin allows it or not to go to the printer). I have two strategies the first one is to develop an application with java (i dont know if i can interact with windows spooler (printing) using JAVA and what is the level of difficulty), the second one is to find an open source application to integrate in my project. Any ideas or suggestions are welcome, thanks and sorry for my bad english.

我不认为Java会成为一个解决方案。您可能需要创建一个打印机驱动程序来捕获所有打印假脱机数据,然后根据您的要求将其传递给物理打印机。请参阅 https://msdn.microsoft.com/en-us/windows/hardware/hh852365 [ ^ ]。
I do not think that Java will be a solution. Chances are you need to create a printer driver to capture all print spool data, and then pass it on to a physical printer according to your requirements. See https://msdn.microsoft.com/en-us/windows/hardware/hh852365[^].