如何使用C#从PRN文件转换TIFF文件 [英] How to convert TIFF file from the PRN file using C#

查看:451
本文介绍了如何使用C#从PRN文件转换TIFF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





任何人都可以帮我解决如何使用C#从PRN文件转换TIFF文件的代码。

迫切需要它在我的项目中实施。

请帮助这样做。



谢谢

Jeetendra

Hi,

Can anyone help me with code on "How to convert TIFF file from the PRN file using C#".
I urgently need it to implement in my project.
Please help to do so.

Thanks
Jeetendra

推荐答案

PRN文件只是保存到将发送到打印机的数据流文件中,如果您选择使用打印到文件选项进行打印:此类文件由打印机驱动程序生成,并包含各种特定于设备的信息,例如要使用的纸盘等。



所以,它不是与设备无关的格式!如果您选择Gonzo 1000打印机作为当前打印机创建PRN文件,坏消息是另一台未连接到Gonzo 1000的计算机上的某人无法打印该文件; 好消息是每个人,无论在哪里,使用Gonzo 1000都可以打印该文件,而无需使用您用于创建文件的应用程序。



考虑以某种方式对PRN文件进行逆向工程并创建TIFF文件是没有意义的。
A "PRN" file is just a save to a file of the stream of data that would be sent to your printer, if you chose to print using the "print to file" option: such a file is produced by the printer driver, and will include all kinds of device-specific information like what paper-tray to use, etc.

So, it's not a device-independent format ! If you create a PRN file with your Gonzo 1000 printer selected as the current printer, the bad news is that someone on another machine not connected to a Gonzo 1000 is not going to be able to print that file; the good news is that everyone, anywhere, with a Gonzo 1000 may be able to print that file without having the application that you used to create the file.

It does not make sense to think of somehow reverse-engineering a PRN file and creating a TIFF file.


这篇关于如何使用C#从PRN文件转换TIFF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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