使用iText或其他方式将PDF转换为多个JPG
我需要将任何多页PDF文件转换为一组JPG。
I have the need to convert any multipage PDF file into a set of JPGs.
由于PDF文件假设来自扫描仪,我们可以假设每个页面只包含一个要提取的图形对象,但我无法100%确定。
Since the PDF files are supposed to come from a scanner, we can assume each page just contains a graphic object to extract, but I cannot be 100% sure of that.
因此,我需要转换任何可渲染的内容从每个页面到单个JPEG文件。
So, I need to convert any renderable content from each page into a single JPEG file.
如何使用iText执行此操作?
How can I do this with iText?
如果我能要用iText做什么,Java库可以实现这个目标吗?
If I can't do this with iText, what Java library can achieve this?
谢谢。
ICEpdf - http://www.icepdf.org/ - 有开源条目应该做你需要的版本。
ICEpdf - http://www.icepdf.org/ - has an open source entry version which should do what you need.
我认为开源版和付费版的主要区别在于付费有更好的字体支持。
I believe the primary difference between the open source version and the pay-for version is that the pay-for has much better font support.