thrownew\exception(CONFIG_INI.' - '.SYSTEM_WKHTMLTOPDF.'='.$config[SYSTEM_WKHTMLTOPDF].' - not found or not executable.');
thrownew\exception(CONFIG_INI.' - '.SYSTEM_WKHTMLTOPDF.'='.$config[SYSTEM_WKHTMLTOPDF].' - not found or not executable.',ERROR_HTML2PDF_WKHTML_NOT_EXECUTABLE);
}
}
$this->session=Session::getInstance($phpUnit);
$this->session=Session::getInstance($phpUnit);
...
@@ -226,7 +226,8 @@ class Html2Pdf {
...
@@ -226,7 +226,8 @@ class Html2Pdf {
$line=system($cmd,$rc);
$line=system($cmd,$rc);
if($rc!=0){
if($rc!=0){
thrownew\exception("Error [RC=$rc] $line: $cmd");
thrownew\exception("Error [RC=$rc] $line: $cmd - in case of trouble: check carefully that *all* CSS, JS, ".
"images are accessible. 'wkhtml' does not report problems but fails.",ERROR_HTML2PDF_WKHTML_FAILED);