What output do you get in your application when you run these code lines
before doing the rendering?
System.out.println(Arrays.toString(ImageIO.getReaderFormatNames()));
Logger.getLogger("huhu").log(Level.SEVERE, "error");
Logger.getLogger("huhu").log(Level.WARNING, "warn");
Logger.getLogger("huhu").log(Level.INFO, "info");
Tilman
Am 20.09.2017 um 09:52 schrieb YE ...:
Hi, Tilman,
Thanks for the advice.
Yes I have installed the jar in class path. And I checked log and didn’t find
the message.
-----邮件原件-----
发件人: Tilman Hausherr [mailto:[email protected]]
发送时间: 2017年9月20日 14:51
收件人: [email protected]
主题: Re: Signature lost when converted from PDF to jpg
Hi,
I can display it. Did you get a log message like this?
Cannot read JPEG2000 image: Java Advanced Imaging (JAI) Image I/O Tools are not
installed
Please read
https://pdfbox.apache.org/2.0/dependencies.html
The link to jai is broken... it's either a file named jai_imageio.jar that you
have somewhere, or
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-client-419417.html
, or the files from
https://github.com/jai-imageio/jai-imageio-core
https://github.com/jai-imageio/jai-imageio-jpeg2000
Tilman
Am 20.09.2017 um 08:40 schrieb YE ...:
Sorry. My mistake.
Here are the correct links:
PDF:
https://shujubiji.cn/uppv/bjPhoto/d5418a966daecda62bcf056ddc1e79c99a4c
6546/1505873304680/original_with_signature.pdf?zid=__itemtoken__ca7e30
b40bc13a74fcc7765a59c9411c1215c2e8
Converted JPG:
https://shujubiji.cn/uppv/bjPhoto/d5418a966daecda62bcf056ddc1e79c99a4c
6546/1505873315791/converted_with_no_signature.jpg?zid=__itemtoken__3f
1caa712e322f4ae4fa483fdd2089d341ff7ba9
And yes I am using 2.0.7.
Regards,
Ye
________________________________
From: Tilman Hausherr <[email protected]>
Sent: Wednesday, September 20, 2017 6:31 AM
To: [email protected]
Subject: Re: Signature lost when converted from PDF to jpg
Hi,
You posted the same URL twice. So we can see but not the PDF. Please
mention the version you are using (hopefully 2.0.7).
Tilman
Am 20.09.2017 um 04:09 schrieb YE ...:
Hi, I am using pdfbox to convert PDF to jpgs.
I have a case that the original PDF has signature but when converted to PDF the
signature is lost.
Is there any special setting for exporting signature?
Original PDF:
https://shujubiji.cn/share/repositories?id=AV6dC1CSCNMzogJYCA5Q&token
=__itemtoken__3f1caa712e322f4ae4fa483fdd2089d341ff7ba9
图片化数字资产管理,pdf转jpg,ppt/doc转jpg保存和发布,专业文档/图库/视频库的最佳选择<https://shujubiji.
cn/share/repositories?id=AV6dC1CSCNMzogJYCA5Q&token=__itemtoken__3f1ca
a712e322f4ae4fa483fdd2089d341ff7ba9>
shujubiji.cn
数据笔记是一个内容图片化数字资产管理平台。pdf转jpg doc转jpg docx转jpg ppt转jpg
pptx转jpg图片是互联网时代最佳展现方式。除了直接管理图片资产以外,数据笔记对视频自动截屏,将Word/PPT/pdf转jpg转换,让内
容在任何时候,任何平台上,随时可见。
Converted:
https://shujubiji.cn/share/repositories?id=AV6dC1CSCNMzogJYCA5Q&token
=__itemtoken__3f1caa712e322f4ae4fa483fdd2089d341ff7ba9
图片化数字资产管理,pdf转jpg,ppt/doc转jpg保存和发布,专业文档/图库/视频库的最佳选择<https://shujubiji.
cn/share/repositories?id=AV6dC1CSCNMzogJYCA5Q&token=__itemtoken__3f1ca
a712e322f4ae4fa483fdd2089d341ff7ba9>
shujubiji.cn
数据笔记是一个内容图片化数字资产管理平台。pdf转jpg doc转jpg docx转jpg ppt转jpg
pptx转jpg图片是互联网时代最佳展现方式。除了直接管理图片资产以外,数据笔记对视频自动截屏,将Word/PPT/pdf转jpg转换,让内
容在任何时候,任何平台上,随时可见。
My code is very simple:
pdfRenderer = new PDFRenderer(document)
pdfRenderer.renderImageWithDPI(page, DPI, ImageType.RGB)
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]