package SL::Template::HTML;
-use SL::Template::LaTeX;
-
-use vars qw(@ISA);
-@ISA = qw(SL::Template::LaTeX);
+use parent qw(SL::Template::LaTeX);
use strict;
$psfile .= ".ps";
}
- system("html2ps -f html2ps-config < $form->{tmpfile} > $psfile");
+ if (system($::lx_office_conf{applications}->{html2ps} . " -f html2ps-config < $form->{tmpfile} > $psfile") == -1) {
+ die "system call to $::lx_office_conf{applications}->{html2ps} failed: $!";
+ }
if ($?) {
- $self->{"error"} = $form->cleanup();
- $self->cleanup();
+ $self->{"error"} = $form->cleanup($::lx_office_conf{applications}->{html2ps});
return 0;
}
$pdffile .= ".pdf";
}
- system("html2ps -f html2ps-config < $form->{tmpfile} | ps2pdf - $pdffile");
+ if (system($::lx_office_conf{applications}->{html2ps} . " -f html2ps-config < $form->{tmpfile} | ps2pdf - $pdffile") == -1) {
+ die "system call to $::lx_office_conf{applications}->{html2ps} failed: $!";
+ }
if ($?) {
- $self->{"error"} = $form->cleanup();
- $self->cleanup();
+ $self->{"error"} = $form->cleanup($::lx_office_conf{applications}->{html2ps});
return 0;
}