我与向默认打印机发送原始打印机文件的应用程序接口。这是它将与数据有关的唯一方法。

我需要以某种方式获得此文件,以便我可以将其存储在其他地方。这是什么最好的方法?

我所想到的是写一个侦听特定端口的应用程序,并将默认打印机设置为该端口。

这样会起作用吗?有更好的方法吗?

有帮助吗?

解决方案

I ran across and LDP implementation for Java that I'm going to modify and use. You can access it as a printer and then do what you want with the raw files.

http://lpdspooler.sourceforge.net/

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top