HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › can not load image error when converting from html to pdf › Re: Re: can not load image error when converting from html to pdf
You can configure your application to use proxy Java-generic way with the following code:
[language=java:3lf5d9c5]String host=”your.proxy.br”;
String port=”80″; // change it to your proxy port number
// older JDK approach
System.getProperties().setProperty(“proxySet”, “true”);
System.getProperties().setProperty(“proxyHost”, host);
System.getProperties().setProperty(“proxyPort”, port);
// newer JDK approach
System.getProperties().setProperty(“http.proxySet”, “true”);
System.getProperties().setProperty(“http.proxyHost”, host);
System.getProperties().setProperty(“http.proxyPort”, port);[/language:3lf5d9c5]
The similar can be achieved with a JVM command line parameters:
-Dhttp.proxySet=true -Dhttp.proxyPort=