将pcl转换成图片 [英] Convert pcl to image

查看:124
本文介绍了将pcl转换成图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过RS232与逻辑分析仪(HP 1660A)通信.我发出一条命令,告诉分析仪打印屏幕显示,并通过串行通信将其发送到控制器(我的电脑).我将结果(通常约为25kB)保存到我的计算机中,我想将其查看为TIFF或其他格式.问题是分析仪的响应采用PCL格式,因此适合发送到打印机直接打印,但不能作为图像打开.我已经尝试了一些PCL到图像转换器来完成这项工作,但我发现其中一个可以正确执行,但是我使用了试用版,因此我不愿意购买.我给了你我工作的背景.我将不胜感激,可以提供任何帮助,包括对pcl 1中命令的引用以及为从PCL文件中提取数据并将其正确格式化而应该采取的措施.我没有任何PCL和图像处理方面的经验,所以请在这里帮助我.谢谢.

I'm communicating with a logic analyzer (HP 1660A) over RS232. I issue a command which tells the analyzer to print screen its display and send it over to the controller (my pc) through serial communication. I'm saving the result (which is usually abut 25kB) to my computer and I would like to view it as a TIFF or other format. The problem is that the response from the analyzer comes in PCL format, therefore suitable to be sent to a printer and printed directly, but not to be opened as an image. I have tried a few PCL to image converters to do the job, I found one which does it properly, however I've used the trial version and I am reluctant to purchase it. I've given you the background of my labour. I would appreciate any kind of help, a reference to the commands in pcl 1 and what should I do in order to extract the data and format it properly from the PCL file. I have no experience with PCL and image processing whatsoever, so please, give me a hand here. Thank you.

P.S.我已经从分析器中获得了PCL文件,无论是在C#中还是在matlab中...在C#中,对于串行端口控制我都存在一个小问题,当使用上述转换器时,某些图像在图像中包含一些未解释的字符.我说所有这些都是因为无论编程语言是什么,我都需要一种算法或一些指示,所以请随时发布.

P.S. I've obtained the PCL file from the analyzer, both in C# and matlab... I have one slight problem in C# with the serial port control, some images have some uninterpreted characters in the image, when using the above converters. I say all these because I need an algorithm or some indications, no matter the programming language, so please feel free to post.

推荐答案

PCL读取起来很复杂.只有少数工具可以很好地完成此任务.我们拥有许多PCL专业知识,并且仍然经常寻求其他人来提供PDF和其他格式的转换.如果PCL非常简单,即仅是文本,一些字体和一两个图形,则可以使用几个RegEx命令处理文本的提取,然后您可以使用所需的任何工具来模拟一个新文档.

PCL is complex to read. There are only a handful of tools out there that do a good job of this. We have lots of PCL expertise and still often look to other to supply conversion to PDF and other formats. If the PCL is quite simple, that is, just text, a few fonts, and a graphic or two, a couple of RegEx commands could deal with the extraction of the text and then you could mock up a new document using whatever tools you wish.

在stackoverflow中查看这些文件可能很困难.如果可以在ftp上获取它们并发布链接,我可以快速浏览一下并在此处发布我的发现/想法.另一个选择是寻找外部工具.我们取得了一些成功.我们的需求是广泛的,因此我选择了一种在许多不同的PCL流中效果最好的方法(某些PCL编码要比其他方法更好).在处理已知数量的PCL时,您可能有一些选择.以下是我们已经使用过并取得一些成功的一些信息(对我们有用)

Looking at these files in stackoverflow might be tough. If you can get them on an ftp and post a link I can take a quick look and post my findings/thoughts here. The other option is to look to an outside tool. There are a few we've had success with. Our needs are broad so I've settled on one that works the best with many different PCL streams (some PCL coding is better than others). As you are dealing with a known quantity of PCL you may have a few options. Here are a few we've used and had some success with (in order of usefulness to us)

PageTech的PCLWorks (它们具有GUI查看器和完整的SDK)

PCLWorks by PageTech (they have a GUI viewer and complete SDK)

VeryPDF PCL Converter (命令行工具)

SwiftView

还有其他的东西,甚至是处理PCL的Ghostscript开源变体(我们从来没有碰到太多运气,因为我们使用的PCL经常包含非常自定义的字体,符号集和大量的宏,这些似乎使它感到窒息.

There are others, and even an opensource variant of Ghostscript that handles PCL (we've never had much luck as the PCL we use often contains very custom fonts, symbol sets, and tons of macros which seem to choke it.

GhostPCL

编辑:最近,我们一直在使用LincPDF( http://www .lincolnco.com/).这也是一款具有很大好处的优秀产品,部署简单.其他一些工具具有复杂的软件安装.对于我们来说,此解决方案非常容易部署为应用程序中的功能.它比我们迄今测试过的任何工具都要快(至少使用我们从应用程序生成的PCL中,这是非常复杂的,因为它们包含专用字体和宏).

Most recently we've been working with LincPDF (http://www.lincolnco.com/). This is also an excellent product with has one big benefit, deployment is simple. Some of the other tools have complex software installations. This solution is very easy for us to deploy as a feature in an application. It's also faster then any tools we've tested to date (at least with the PCL that we generate from our apps which is quite complex as they include specialized fonts and macros).

这篇关于将pcl转换成图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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