将嵌入式HP打印机代码的文本文件转换为PostScript

时间:2021-10-10 00:29:06

I have an application that prints by generating text files with embedded printer codes, then basically just copies the file to the printer to print. I need to take that print file and convert it to an image - just as if it was printed then scanned.

我有一个应用程序,通过生成带有嵌入式打印机代码的文本文件进行打印,然后基本上只是将文件复制到打印机进行打印。我需要获取该打印文件并将其转换为图像 - 就像打印然后扫描一样。

My first thought was to setup a printer with a postscript printer driver attached to a file port, and then run the result through ghostscript to create a tiff, but it isn't working.

我的第一个想法是设置一个带有附加到文件端口的postscript打印机驱动程序的打印机,然后通过ghostscript运行结果来创建一个tiff,但它不起作用。

Any ideas?

1 个解决方案

#1


1  

The printer codes are probably PCL. Maybe pcl-parser could serve as a start for your own tool to do this? There also seems to be a commercial product called PCLXForm.

打印机代码可能是PCL。也许pcl-parser可以作为你自己的工具的开始来做到这一点?似乎还有一种名为PCLXForm的商业产品。

Edit: Also investigate GhostPCL.

编辑:还调查GhostPCL。

#1


1  

The printer codes are probably PCL. Maybe pcl-parser could serve as a start for your own tool to do this? There also seems to be a commercial product called PCLXForm.

打印机代码可能是PCL。也许pcl-parser可以作为你自己的工具的开始来做到这一点?似乎还有一种名为PCLXForm的商业产品。

Edit: Also investigate GhostPCL.

编辑:还调查GhostPCL。