是否有用于转换“任何文件类型"的编程工具包?到 TIFF 图像? [英] Is there a programming toolkit for converting "any file type" to a TIFF image?

查看:35
本文介绍了是否有用于转换“任何文件类型"的编程工具包?到 TIFF 图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个程序的几个变体.该程序的目的是将任何文件类型"转换为该文件的 TIFF 图像表示,就像使用打印机打印一样.

I've written several variations of a program. The purpose of the program is to convert "any file type" to a TIFF image represenation of that file, as if it were being printed using a printer.

我目前正在使用我将文件发送到的第三方打印机驱动程序,它输出一个 TIFF 图像.这很好,但它需要我使用 Office Interop 文件,并与每个单独的处理应用程序交互以打印文件.

I'm currently using a third party printer driver that I send files to, and it outputs a TIFF image. This is nice, but it requires me to use Office Interop files, and interact with each individual processing application in order to print the files.

我之前尝试过一个名为 Apose .NET 的工具包,它不依赖于 Office Interop,并且不需要任何打印机驱动程序.它自己完成了转换,并会创建一个 TIFF 图像.Aspose .NET 的问题在于它不支持多种输入文件类型.最值得注意的是,它不能处理 Visio 文件.

I had previously tried a toolkit, called Apose .NET, which did not rely on Office Interop, and did not require any printer driver. It did the conversion all on its own and would create a TIFF image. The problem with Aspose .NET was that it did not support a wide variety of input file types. Most notably, it can't do Visio files.

我的项目要求能够为几乎任何文件类型"创建 TIFF 图像.(不包括 exe、音乐文件和其他东西)我知道找到可以处理任何文件类型的东西可能不是一项非常可行的任务,所以我想它是否至少可以处理所有 Office 文件类型、Adobe 类型和其他主要类型标准文件类型,然后我可以编写一个自定义扩展解析模块,使用这些处理应用程序来打印可以使用这些应用程序查看的任何文件类型.

My project calls for the ability to create a TIFF image for virtually "any file type". (excluding exes, music files, and stuff) I know that finding something that handles literally any file type is probably not a very feasible task, so I figure if it can at least handle all the Office file types, Adobe types, and other major standard file types, then I can write a custom extension parsing module that uses those processing applications to do the printing of any file type that can be viewed using those applications.

那么,有人知道可以做到这一点的工具包吗?最好是不依赖 Office 或打印机驱动程序的.它不一定是免费的或开源的.或者,如果您知道一个出色的打印机驱动程序可以做到这一点,我也愿意接受.

So, does anyone know of a toolkit that can do this? Preferably one that does not rely on Office or a printer driver. It does not have to be free, or open source. Or, if you know of an amazing printer driver that does this, I'm open to that too.

推荐答案

这是一个集成项目 - 没有一种工具可以读取您感兴趣的所有文件类型.在我们的案例中,我们开发了一个通用的接受多种输入类型(按文件扩展名)并基于该类型执行外部应用程序的转码服务:

This is an integration project - there is no one tool that will read all of the file types you're interested in. In our case, we developed a generic transcoding service that accepts numerous input types (by file extension) and executes external applications based on that type:

  • Ghostscript 用于 PDF 和 PS 文件,
  • ImageMagick 用于图像文件,
  • Apose.NET 适用于 Office 类型,以及
  • 一些自产的东西,用于更简单的类型,如文本文件.
  • Ghostscript for PDF and PS files,
  • ImageMagick for image files,
  • Apose.NET for Office types, and
  • some homegrown stuff for simpler types like text files.

我们还没有找到可以解释除 Visio 本身之外的所有版本的 Visio 文件的应用程序.您可能已经知道,Office Interop 不应在服务器上使用.

We haven't found an application that will interpret Visio files of all versions other than Visio itself. And as you may already know, Office Interop should not be used on a server.

这篇关于是否有用于转换“任何文件类型"的编程工具包?到 TIFF 图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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