How to print with PCL

拥有回忆 提交于 2021-02-08 06:19:38

问题


I have Xerox workcenter 7120, this printer is on network. I would like to print pdf file with PCL command from Linux host. My printer support PCL. But I don't know how can I send print job on my printer with PCL.

I have find this document how explain all PCL command pcl command xerox


回答1:


PCL itself is quite complex, so it's not that easy to give simple answer to your question.

First you need to convert PDF to PCL data and then you send PCL data to printer. AFAIK, GhostScript utility can do the conversion for you.

BTW, check if your printer supports PJL and possibly direct PDF printing. That could be much easier to implement since there is no need to use PCL at all.

In general, you connect to your printer's IP address, port 9100 (default) and send series of commands (PJL and/or PCL) along with actual PDF (if your printer supports it).

Example:

%-12345X@PJL COMMENT *Start Job*
@PJL JOB NAME = "test"
@PJL ENTER LANGUAGE = PDF
... actual PDF binary contents goes here ...
%-12345X@PJL EOJ NAME = "test"
%-12345X

%-12345X - escape sequence for PJL @PJL [something] - PJL command



来源:https://stackoverflow.com/questions/42395557/how-to-print-with-pcl

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