pull/1/head
Michael Peter Christen 10 years ago
parent 6f81bb756c
commit e8be07ec78

@ -72,7 +72,7 @@ public class Html2Image {
*/
public static boolean writeWkhtmltopdf(String url, String proxy, File destination) {
final File wkhtmltopdf = wkhtmltopdfMac.exists() ? wkhtmltopdfMac : wkhtmltopdfDebian;
String commandline = wkhtmltopdf.getAbsolutePath() + " --title " + url + (proxy == null ? " " : " --proxy " + proxy + " ") + url + " " + destination.getAbsolutePath();
String commandline = wkhtmltopdf.getAbsolutePath() + " --title " + url + (proxy == null ? " " : " --proxy " + proxy + " ") + "--ignore-load-errors " + url + " " + destination.getAbsolutePath();
try {
if (!usexvfb) {
OS.execSynchronous(commandline);

Loading…
Cancel
Save