projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84ba821
)
Überbleibsel von der Unterstützung für html2ps entfernt.
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 23 Apr 2008 15:02:55 +0000
(15:02 +0000)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 23 Apr 2008 15:02:55 +0000
(15:02 +0000)
SL/ReportGenerator.pm
patch
|
blob
|
history
diff --git
a/SL/ReportGenerator.pm
b/SL/ReportGenerator.pm
index
cd9caea
..
f366462
100644
(file)
--- 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;