Subject: | can't run htmldoc executable |
in HTML/HTMLDoc.pm generate_pdf sub, if the htmldoc binary can not be found no error is returned to $htmldoc -> error() or even displayed to STDOUT etc..
###############
# finaly produces the pdf-output
# param: -
# return: pdf:STRING
###############
sub generate_pdf {
my $self = shift;
my $params = $self->_build_parameters();
my $pdf;
#if ($self->{'config'}->{'mode'} eq 'ipc') {
if ($self->_config('mode') eq 'ipc') {
# we are in normale Mode, use IPC
my ($pid, $error);
($pid,$pdf,$error) = $self->_run("htmldoc $params --webpage -", $self->get_html_content());
#print "error from generate: $error\n";
} else {
# we are in file-mode
my $filename = $self->_prepare_input_file();
return undef if (!$filename);
$pdf = `htmldoc $params --webpage $filename`;
$self->_cleanup();
}
my $doc = new HTML::HTMLDoc::PDF(\$pdf);
return $doc;
}