如何使用 PCL 打印 [英] How to print with PCL

查看:67
本文介绍了如何使用 PCL 打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 Xerox Workcenter 7120,这台打印机在网络上.我想从 Linux 主机用 PCL 命令打印 pdf 文件.我的打印机支持 PCL.但我不知道如何使用 PCL 在我的打印机上发送打印作业.

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.

我找到了这个文档如何解释所有 PCL 命令 pcl 命令施乐

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

推荐答案

PCL 本身相当复杂,所以要简单回答你的问题并不容易.

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

首先您需要将 PDF 转换为 PCL 数据,然后将 PCL 数据发送到打印机.AFAIK,GhostScript 实用程序可以为您进行转换.

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.

顺便说一句,请检查您的打印机是否支持 PJL 和可能的直接 PDF 打印.这可能更容易实现,因为根本不需要使用 PCL.

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.

通常,您连接到打印机的 IP 地址、端口 9100(默认)并发送一系列命令(PJL 和/或 PCL)以及实际的 PDF(如果您的打印机支持).

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).

示例:

%-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 - PJL 的转义序列@PJL [something] - PJL 命令

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

这篇关于如何使用 PCL 打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆