打印 EPS 时出现令人讨厌的命令错误

发布于 2024-12-09 08:19:00 字数 718 浏览 1 评论 0原文

我正在打印使用以下凭据生成的 EPS 文件。

%-12345X@PJL JOB
@PJL ENTER LANGUAGE = POSTSCRIPT 
%!PS-Adobe-3.0
%%Title: InvoiceDetail_combine
%%Creator: PScript5.dll Version 5.2.2
%%CreationDate: 10/7/2011 4:46:59
%%For: Administrator
%%BoundingBox: (atend)
%%Pages: (atend)
%%Orientation: Portrait
%%PageOrder: Special
%%DocumentNeededResources: (atend)
%%DocumentSuppliedResources: (atend)
%%DocumentData: Clean7Bit
%%TargetDevice: (HP Color LaserJet 4500) (2014.200) 0
%%LanguageLevel: 2
%%EndComments

在 Ricoh Afficio 2090 或任何其他驱动程序/打印机上进行选择打印时,在纸张上打印以下错误,

ERROR: undefined
OFFENDING COMMAND: F4S47
Stack:

.

请检查并建议转身,因为我已经陷入了这个地狱。我尝试过在PS中转换/提取,但都是徒劳的。我正在使用 gsview 打印和查看这些文件。

I am printing an EPS File generated with following credentials.

%-12345X@PJL JOB
@PJL ENTER LANGUAGE = POSTSCRIPT 
%!PS-Adobe-3.0
%%Title: InvoiceDetail_combine
%%Creator: PScript5.dll Version 5.2.2
%%CreationDate: 10/7/2011 4:46:59
%%For: Administrator
%%BoundingBox: (atend)
%%Pages: (atend)
%%Orientation: Portrait
%%PageOrder: Special
%%DocumentNeededResources: (atend)
%%DocumentSuppliedResources: (atend)
%%DocumentData: Clean7Bit
%%TargetDevice: (HP Color LaserJet 4500) (2014.200) 0
%%LanguageLevel: 2
%%EndComments

While doing Selection Printing on Ricoh Afficio 2090 or any other drivers/printers get the following error printed on the sheets

ERROR: undefined
OFFENDING COMMAND: F4S47
Stack:

.

Kindly Review and suggest a turn around for the same as i am already stuck in this hell. I have tried to convert/extract in PS but all in vain. I am using gsview to Print and view these files.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

遇见了你 2024-12-16 08:19:00

这就是问题所在:

%%页面顺序:特殊

具有“特殊”页面顺序的 ps 文档不能重新排序。您无法对此文件进行选择或范围操作,因为该文件已损坏。您必须使用 Distiller 或 Ghostscript(ps2ps 或 ps2pdf)重新处理文件,才能打印文档中选定或重新排序的页面。

您可以通过使用真实 Postscript™ 驱动程序(不是由 Microsoft 创建的)生成 postscript 文件来避免这种情况。

GSView 文档 有关于此的更多信息。

以前:

这一行...

%%目标设备:(HP Color LaserJet 4500) (2014.200) 0

... 告诉我们该文件是使用 HP 打印机作为目标生成的。所以这确实不是 EPS 文件。因为它不可封装。要在打印机上生成输出,文件必须执行 showpage 运算符,这对于 EPS 文件来说是不可以的。

因此,取消选中 EPS 框(无论如何,这是一个弥天大谎),然后选择(安装)通用 Postscript 驱动程序。如果您需要将其发送到多个品牌的打印机,则文件需要对打印机做出尽可能少的假设。

This is the problem:

%%PageOrder: Special

A ps document with "Special" page order can NOT be re-ordered. You cannot do a selection or range with this file because it is broken for this use. You must reprocess the file using Distiller or ghostscript (ps2ps or ps2pdf) in order to print selected or re-ordered pages from the document.

You can avoid this by generating your postscript files with a real Postscript™ driver (one not created by Microsoft).

The GSView Documentation has more about this.

Previously:

This line ...

%%TargetDevice: (HP Color LaserJet 4500) (2014.200) 0

... tells us that the file was generated with HP printers as a target. So this really is not an EPS file. Because it's not Encapsulatable. To generate output on a printer the file has to execute the showpage operator, which is a no-no for EPS files.

So uncheck the EPS box (it's a big fat lie, anyway), and select (install) a Generic Postscript driver. If you need to send it to multiple makes of printer, the file needs to make as few assumptions about the printer as possible.

南烟 2024-12-16 08:19:00

首先,这不是一个有效的 EPS 文件,因为它的前面附加了 PJL。许多 PostScript 打印机都会去掉这一点,但绝不是全部。

这可能不是问题的根源。

由于您没有提供完整的 PostScript 程序,因此无法“审查”该问题。如果没有这一点,就无法判断到底出了什么问题,错误消息告诉您解释器在尝试解析令牌时遇到了“F4547”,并且尚未将其定义为例程。

该文件很可能已损坏,或者以某种方式损坏,或者可能是二进制文件,并且已由某些确实进行了某种转换的进程传输(CR/LF 很常见)。有问题的命令看起来像是 ASCIIHex 编码的,因此这可能是一个转移注意力的命令。

如果您需要额外的帮助,您将必须在某个地方提供整个程序。

The first thing is that this is not a valid EPS file, as it has PJL attached at the front. Many PostScript printers will strip this off, but by no means all.

This probably is not the source of the problem.

There is no way to 'review' the problem as you have not supplied the complete PostScript program. Without that there is no way to tell what is actually wrong, the error message tells you that the interpreter encountered 'F4547' while trying to parse a token, and that this has not been defined as a routine.

Most likely the file is corrupt, either damaged in some way, or possibly it is a biinary file and has been transmitted by some process which does has done some kind of conversion (CR/LF is common). The offending command looks like its ASCIIHex encoded, so that may be a red herring.

If you want additional help, you are going to have to make the whole program available somewhere.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文