projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ausgabe angepasst
[kivitendo-erp.git]
/
bin
/
mozilla
/
reportgenerator.pl
diff --git
a/bin/mozilla/reportgenerator.pl
b/bin/mozilla/reportgenerator.pl
index
8186977
..
50f6ecc
100644
(file)
--- a/
bin/mozilla/reportgenerator.pl
+++ b/
bin/mozilla/reportgenerator.pl
@@
-41,9
+41,14
@@
sub report_generator_export_as_pdf {
$form->{copies} = max $myconfig{copies} * 1, 1;
$form->{copies} = max $myconfig{copies} * 1, 1;
+ my $allow_font_selection = 1;
+ eval { require PDF::API2; };
+ $allow_font_selection = 0 if ($@);
+
$form->{title} = $locale->text('PDF export -- options');
$form->header();
$form->{title} = $locale->text('PDF export -- options');
$form->header();
- print $form->parse_html_template('report_generator/pdf_export_options', { 'HIDDEN' => \@form_values });
+ print $form->parse_html_template('report_generator/pdf_export_options', { 'HIDDEN' => \@form_values,
+ 'ALLOW_FONT_SELECTION' => $allow_font_selection, });
$lxdebug->leave_sub();
}
$lxdebug->leave_sub();
}