English 中文(简体)
使用PS文件以Java打印
原标题:Printing in Java using PS file

我有一个生成的post脚本文件,并想使用它进行打印。如何使用javax打印API或AWT在java中实现它。有可能吗?

问题回答

复杂的您的打印机支持PostScript吗?它是联网的吗?如果是这样的话,大多数联网打印机都可以使用LPR,您可以按原样将文件推送。在Windows上,您也可以通过类似于NET USE lpt1:\[计算机名称]打印机/PERISISTENT:YES的方式将文件按原样流式传输到lpt1:映射端口。

如果你在服务器上,并且你做了很多PostScript处理,并且你的打印机基础设施支持它,我会非常研究LPR协议。我已经用Java编写了几个LPR/LPD管理函数来处理打印机作业,所以我知道这可以相对轻松地完成。

http://tools.ietf.org/pdf/rfc1179.pdf





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...