We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
尝试使用 LibTiff.Net 库。
该库附带 tiff2pdf 实用程序(您需要自己构建它)这可能正是您所需要的。您甚至可以将实用程序的代码合并到您的应用程序中。
该库和实用程序是免费且开源的。许可证(新BSD许可证)允许任何修改。您可以在商业应用程序中使用该库和实用程序。
免责声明:我是图书馆的维护者之一。
Try LibTiff.Net library for this.
The library comes with tiff2pdf utility (you would need to build it yourselves) that probably does exactly what you need. You may even incorporate the code of the utility in your application.
The library and utility are free and open-source. License (New BSD License) allows any modifications. You can use the library and utility in commercial applications.
Disclaimer: I am one of the maintainers of the library.
TIFF 到 PNG:
System.Drawing。 Image 将允许您打开 Group3 TIFF 并将其保存为 PNG,只需将 TIFF 加载为普通图像(例如 Image.FromFile,Image.FromStream 等),然后使用 Image.Save 方法与 ImageFormat.Png 参数。由于 TIFF 差异很大,有时我会遇到 System.Drawing 无法打开的模糊 TIFF,但这种情况并不常见。如果发生这种情况,您需要从开源中寻找第三方库(例如 iText 有一个复杂的图像库),或者有商业选项,例如 Lead Tools 或 Atalasoft。
TIFF 到 PDF:
iTextSharp 是一个很棒的库。我什至通过 Google 搜索找到了一些关于该特定主题的文章。 这个似乎是一个很好的开始满足您的需求。
TIFF to PNG:
System.Drawing.Image will allow you to open a Group3 TIFF and save it as PNG simply by loading the TIFF as a normal image (e.g. Image.FromFile, Image.FromStream, etc.) and then saving it using the Image.Save method with the ImageFormat.Png argument. As TIFFs vary widely, on occasion I have encountered an obscure TIFF that System.Drawing won't open, but that is unusual. If it happens, you'll need to seek out a third party library from opensource (e.g. iText has a sophisticated image library) or there are commercial options such as Lead Tools or Atalasoft.
TIFF to PDF:
iTextSharp is a great library for doing this. I even found some articles on this specific topic with a google search. This one seems to be a good one to start with for your needs.
(免责声明 - 我在 Atalasoft 工作)
如果您使用 dotImage 来实现此目的,则这两种转换都很简单。
对于 tiff 到 pdf:
对于 tiff 到 png:
(disclaimer - I work for Atalasoft)
If you use dotImage for this, both conversions are trivial.
for tiff to pdf:
for tiff to png:
使用 Ghostscript,我曾经从 PDF 中提取图像并创建缩略图,该库还可以将图像转换为 PDF,并且它是开源的。
有人为 Ghostscript API 创建了一个包装器:
http://www.mattephraim。 com/blog/2009/01/06/a-simple-c-wrapper-for-ghostscript/
Use ghostscript, i used to extract images from a PDF and create thumbnails, the lib also convert from images to PDF and it's open source.
A guy create a wrapper for the ghostscript API:
http://www.mattephraim.com/blog/2009/01/06/a-simple-c-wrapper-for-ghostscript/