在java中使用iText将PDF转换为图像

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21235815/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 07:32:08  来源:igfitidea点击:

PDF to Image conversion using iText in java

javaitext

提问by user3215317

I have a requirement to convert PDF document to images and store it as a JPEG format in one physical location. I want to make this conversion using iTextonly.

我需要将 PDF 文档转换为图像并将其作为 JPEG 格式存储在一个物理位置。我只想使用iText进行此转换。

回答by Reuben

iTextcan't help you much. You need a renderer to do that.

iText帮不了你太多。你需要一个渲染器来做到这一点。

You can use JPedalOpen Source library .

您可以使用JPedal开源库。

回答by ravibagul91

iText will not help you much to convert pdf to image. You can use pdfboxto convert pdf to image. For more information click here

iText 不会帮助您将 pdf 转换为图像。您可以使用pdfbox将 pdf 转换为图像。欲了解更多信息,请单击此处