X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fmsg_template.pm;h=cb13696a58c35c53fd92adacbb2b9ae51fd64c4d;hb=ecf01f1adf08cfbbb489d18c39a9626079112526;hp=83d037804cfc06fe394b773c9b0a0714926578bc;hpb=40bb49d12cf25f147b1ce4494b3a7b4c1104b23c;p=freeside.git diff --git a/FS/FS/msg_template.pm b/FS/FS/msg_template.pm index 83d037804..cb13696a5 100644 --- a/FS/FS/msg_template.pm +++ b/FS/FS/msg_template.pm @@ -462,9 +462,11 @@ sub render { # Graphics/stylesheets should probably go in /var/www on the Freeside # machine. + my $script_path = `/usr/bin/which freeside-wkhtmltopdf`; + chomp $script_path; my $kit = PDF::WebKit->new(\$html); #%options # hack to use our wrapper script - $kit->configure(sub { shift->wkhtmltopdf('freeside-wkhtmltopdf') }); + $kit->configure(sub { shift->wkhtmltopdf($script_path) }); $kit->to_pdf; }