使用iText或其他方式将PDF转换为多个JPG [英] Converting a PDF into multiple JPGs with iText or other

查看:774
本文介绍了使用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.

这篇关于使用iText或其他方式将PDF转换为多个JPG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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