Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d43904e8

Von Moritz Bunkus vor etwa 16 Jahren hinzugefügt

  • ID d43904e8740303c640001b7362eac01d7df019c6
  • Vorgänger 06af498f
  • Nachfolger 5bb3340b

Das Perl-Modul PDF::API2 ist nun feste Voraussetzung.

Unterschiede anzeigen:

SL/InstallationCheck.pm
20 20
  { "name" => "List::Util", "url" => "http://search.cpan.org/~gbarr/" },
21 21
  { "name" => "Template", "url" => "http://search.cpan.org/~abw/" },
22 22
  { "name" => "Digest::MD5", "url" => "http://search.cpan.org/~gaas/" },
23
  { "name" => "PDF::API2", "url" => "http://search.cpan.org/~areibens/" },
23 24
  );
24 25

  
25 26
@optional_modules = (
26
  { "name" => "PDF::API2", "url" => "http://search.cpan.org/~areibens/" },
27 27
  );
28 28

  
29 29
sub module_available {
SL/ReportGenerator.pm
5 5
use List::Util qw(max);
6 6
use Text::CSV_XS;
7 7
use Text::Iconv;
8
use PDF::API2;
9
use PDF::Table;
8 10

  
9 11
use SL::Form;
10 12

  
......
371 373

  
372 374
  my $allow_pdf_export = $opts->{allow_pdf_export};
373 375

  
374
  eval { require PDF::API2; require PDF::Table; };
375
  $allow_pdf_export |= 1 if (! $@);
376

  
377 376
  my $variables = {
378 377
    'TITLE'                => $opts->{title},
379 378
    'TOP_INFO_TEXT'        => $self->html_format($opts->{top_info_text}),
......
921 920

  
922 921
=item allow_pdf_export
923 922

  
924
Used to determine if a button for PDF export should be displayed. Default is yes. The PDF button is hidden if neither the Perl module PDF::API2 nor the external applications html2ps and Ghostscript are available regardless of this parameter's value.
923
Used to determine if a button for PDF export should be displayed. Default is yes.
925 924

  
926 925
=item allow_csv_export
927 926

  

Auch abrufbar als: Unified diff