From 786b3862388eb8d4cdcc5dfc663a37fe0e9a82a1 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 23 Apr 2008 15:02:55 +0000 Subject: [PATCH] =?utf8?q?=C3=9Cberbleibsel=20von=20der=20Unterst=C3=BCtzu?= =?utf8?q?ng=20f=C3=BCr=20html2ps=20entfernt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/ReportGenerator.pm | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/SL/ReportGenerator.pm b/SL/ReportGenerator.pm index cd9caea1c..f3664624b 100644 --- a/SL/ReportGenerator.pm +++ b/SL/ReportGenerator.pm @@ -396,7 +396,12 @@ sub _cm2bp { return $_[0] * 72 / 2.54; } -sub render_pdf_with_pdf_api2 { +sub generate_pdf_content { + eval { + require PDF::API2; + require PDF::Table; + }; + my $self = shift; my $variables = $self->prepare_html_content(); my $form = $self->{form}; @@ -651,14 +656,6 @@ sub _print_content { } } -sub generate_pdf_content { - my $self = shift; - - eval { require PDF::API2; require PDF::Table; }; - - return $self->render_pdf_with_pdf_api2(@_); -} - sub unescape_string { my $self = shift; my $text = shift; -- 2.20.1