用于设置方向的 PJL 命令
我尝试使用 PJL 设置份数并使其正常工作。但是我无法让 @PJL SET ORIENTATION=LANDSCAPE 工作。它始终以纵向打印。我也在寻找打印特定页面范围(例如从第 2 页到第 5 页)的选项。这可以使用 PJL 实现吗?我使用的是 HP LaserJet 5000 系列 PCL6 打印机。
I have tried setting the number of copies using PJL and got it working. However I could not get the @PJL SET ORIENTATION=LANDSCAPE working. It always prints in Portrait. I am also looking for options to print particular page range say from page 2 to 5. Can this be achieved using PJL? I am using the printer HP LaserJet 5000 Series PCL6.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我可以使用命令 @PJL JOB NAME="TestPage" START=2 END=5 来实现页面范围。有用。修改方向不起作用。
I am able to achieve page range using the command, @PJL JOB NAME="TestPage" START=2 END=5. It works. Modfying the orientation does not work.
对于您的情况,PJL 很可能无法完成此操作。数据流可能包含定向命令。 PJL 旨在提供对所使用的数据流非本机功能的访问,提供显式语言选择的解决方案,允许来自打印机和其他作业相关项目的反馈。
最好的解决方案是解析输出并进行内联更改。您可以使用第三方解决方案(例如 Ghostscript)将文档拆分为纵向和横向的部分,让它为您旋转,然后将文件再次拼凑在一起。
其他选项可能包括使用 PCL5 等语言,这样可以更轻松地内联修改数据。
This most likely cannot be done with PJL in your case. The datastream probably contains a command for orientation. PJL is designed to provide access to features that are not native to the datastream used, provides a solution for explicit language selection, allows for feedback from the printer and other job related items.
Your best solution is to parse the output and make the change inline. You might be able to do this with a 3rd party solution like Ghostscript by splitting the document into sections for portrait and landscape, having it rotate for you, and then piece the file back together again.
Other options might include using a language such as PCL5 where it might be easier to modify the data inline.
您的 postscript 代码可能具有覆盖您的 PJL 命令的方向命令。在您的 postscript 代码中,查找类似的内容,因为它将页面旋转为横向:
例如,我使用此代码在 postscript 中横向旋转:
Your postscript code likely has the orientation command which is overriding your PJL command. In your postscript code, look for something like this, as it's the thing that will rotate the page to landscape:
For example, I'm using this code to go landscape in postscript: