Skip Menu |

This queue is for tickets about the HTML-HTMLDoc CPAN distribution.

Report information
The Basics
Id: 7024
Status: new
Priority: 0/
Queue: HTML-HTMLDoc

People
Owner: Nobody in particular
Requestors: enquiries [...] thedumbterminal.co.uk
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.07
Fixed in: (no value)



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; }