Page 1 of 1

HTML to PDF not loading images behind HTTPS

Posted: Thu Dec 09, 2010 2:53 pm
by peterhammer
Dear all, I have a java program that runs on tomcat and allows the users to transform almost any file to PDF. This is working fine. Even behind HTTPS.

The problem comes when the file to be converted is an HTML with "img" tags inside referencing images behind HTTPS. The PDF is created, but instead of the images there is a white square.

For example:
Code:
<html><img src="https://dzone.webex.com/brand_abwd/3261 ... gif"><html>

That HTML file will not be exported correctly to PDF. Using Writer (File - Open, and then File - Export - PDF) does the same thing.

Is there any way to manually import the certificate so images are downloaded? And to do this in Java?

Any help in this matter is more than welcome.

Thanks in advance.

Best regards,
Peter Hammer.

Re: HTML to PDF not loading images behind HTTPS

Posted: Sat May 21, 2011 8:13 pm
by gargkapil
Has anyone found a solution for generating HTML to PDF? Is open office recommended over PD4ML or itext, both of them charge you