[英]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支持从您的列表中读写
BMP
, JPEG/JFIF
, TIFF
, GIF
和PNG
。
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可以读取
doc
, docx
, xls
和xlsx
,但是我不知道将它们转换为图像的简单方法(如果您要这样做)。 What you could probably do is make a conversion to a PDF
first and then from PDF
to an image. 什么你大概可以做的是做一个转换为
PDF
,然后再从PDF
到图像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.