EMF到PCL转换 [英] EMF to PCL Conversion

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

问题描述





我要求将EMF文件转换为PCL。我已经从EMF文件中读取了所有记录类型。如何将EMF记录转换为相应的PCL格式(我对PCL命令有一些了解,但对EMF和PCL中的值之间的关系不太了解?



例如,考虑EMF记录类型EMR_EXTTEXTOUTW,我知道X和Y坐标,使用的字体,字符间距等。如何将这些XY坐标转换为PCL中的相应位置?有哪些因素(目的地)分辨率,页面大小等)我应该考虑转换这些参数。如果可能的话,请给出一个代码片段。



提前谢谢。

Hi,

I have a requirement to convert EMF file to PCL. I have read all the record types from EMF file. How can I transform the EMF records to corresponding PCL format (I have some idea about the PCL commands, but don''t know much about the relation between values in EMF and PCL?

For example, consider the EMF record type "EMR_EXTTEXTOUTW", I know the X & Y coordinates, font used, character spacing etc. How can I convert these XY coordinate to corresponding position in PCL? What are the factors(destination resolution, pagesize etc) should I consider for converting these parameters. If possible, please give a code snippet.

Thanks in advance.

推荐答案

虽然我无法弄清楚这个的目的,但我建议你采用一种更简单的方法:安装PCL打印机并将其设置为文件,而不是使用常规打印将emf图形打印到那个打印机。你得到emf的pcl输出。或者你可以使用这样的工具: http:/ / www.leadtools.com/sdk/formats/image-formats.htm [ ^ ]。
Although I can not figure out the purpose of this, I suggest you a pretty much simpler approach: install a PCL printer and set it up to file, than use regular printing to print the emf graphics to that printer. And you get the pcl output from emf. Or you could use a tool like this: http://www.leadtools.com/sdk/formats/image-formats.htm[^].


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

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