Hi there,
Today I installed this plugin, but not without some hassle! I found a bug in converters/PdfConverterFactory.php:
if ($wgPdfExportHtmlDocPath) {
$output = array();
$return_val = null;
exec($wgPdfExportHtmlDocPath.' --version', $output, $return_val);
if ($return_val === 0) {
return new HtmlDocPdfConverter();
}
}
should be:
if ($wgPdfExportHtmlDocPath) {
$output = array();
$return_val = null;
exec($wgPdfExportHtmlDocPath.' --version', $output, $return_val);
if ($return_val !== 0) {
return new HtmlDocPdfConverter();
}
}
note the === and !==. Now the code works like a charm, thanks!