HTML to PDF not loading images behind HTTPS
Posted: Thu Dec 09, 2010 2:53 pm
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.
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.