Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d43904e8

Von Moritz Bunkus vor mehr als 16 Jahren hinzugefügt

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

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

Unterschiede anzeigen:

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