简体   繁体   English

如何在Java中将具有以下扩展名jpg,pdf,gif,xls,xlsx,doc,docx,rtf,bmp,jpeg,csv的图像转换为.TIFF?

[英]How to convert images with following extensions jpg, pdf, gif, xls, xlsx, doc, docx, rtf, bmp, jpeg, csv to .TIFF in java?

How to convert images with following extensions jpg, pdf, gif, xls, xlsx, doc, docx, rtf, bmp, jpeg, csv to .TIFF in Java ? 如何在Java中将具有以下扩展名jpg, pdf, gif, xls, xlsx, doc, docx, rtf, bmp, jpeg, csv.TIFF

I want to convert all the above mentioned image extensions to .TIFF extension. 我想将上述所有图像扩展名转换为.TIFF扩展名。

Apache Commons Sanselan has support for reading and writing BMP , JPEG/JFIF , TIFF , GIF and PNG from your list. Apache Commons Sanselan支持从您的列表中读写BMPJPEG/JFIFTIFFGIFPNG

Apache PDFBox can convert PDF files to images (see PDFToImage code). Apache PDFBox可以将PDF文件转换为图像(请参阅PDFToImage代码)。

Apache POI can read doc , docx , xls and xlsx , but I am not aware of an easy way to convert them to an image (if that is what you would want to do). Apache POI可以读取docdocxxlsxlsx ,但是我不知道将它们转换为图像的简单方法(如果您要这样做)。 What you could probably do is make a conversion to a PDF first and then from PDF to an image. 什么你大概可以做的是做一个转换为PDF ,然后再从PDF到图像。

You can use JAI for converting images to TIFF format. 您可以使用JAI将图像转换为TIFF格式。

Check this post 检查这篇文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM