Thread PDF::Create - dynamisch Seiten hinzufügen (1 answers)
Opened by Gast at 2006-12-07 11:46

renee
 2006-12-07 12:00
#72299 #72299
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Das ganze kannst Du auch so kürzen:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
my $pdf = PDF::Create->nw(...);
my $root = $pdf->new_page(...);

# Datenbankzeugs...

my $c = 0;
my $page = $root->new_page();
while(my ($daten) = $sth->fetchrow_array()){
if($c == 50 or ($c -50) % 60 == 0){
$page = $root->new_page();
}
$page->stringl($daten);
$c++;
}


Das ist jetzt nur illustriert, anpassen an Deinen Code musst Du es selbst. Das ist ungetestet!\n\n

<!--EDIT|renee|1165485718-->
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread PDF::Create - dynamisch Seiten hinzufügen