Thread Optimale Spaltenbreite (bei PDF) (34 answers)
Opened by bianca at 2010-01-18 19:12

bianca
 2010-01-19 14:11
#130782 #130782
User since
2009-09-13
6977 Artikel
BenutzerIn

user image
Hat jemand eine Idee, warum bei folgendem Beispiel die Tabelle im PDF keinen rechten Rand gezeichnet hat?
Mach ich etwas falsch?

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/perl -w
use strict;
use warnings;
use PDF::API2;
use PDF::Table;

my $pdftable = new PDF::Table;
my $pdf = new PDF::API2(-file => "testpdf.pdf");
my $page = $pdf->page;

my $some_data =[
        ["1 Lorem ipsum dolor","Donec odio neque, faucibus vel","consequat quis, tincidunt vel, felis."],
        ["Nulla euismod sem eget neque.","Donec odio neque","Sed eu velit."],
        ["testzeile 3"],
        ["testzeile 4"],
];
   
$pdftable->table(
        $pdf,
        $page,
        $some_data,
        x => 10,
        w => 490,                                               
        start_y => 750,
        next_y  => 700,                         
        start_h => 300,
        next_h  => 500,
        border_color   => 'red',
);

$pdf->saveas();
10 print "Hallo"
20 goto 10

View full thread Optimale Spaltenbreite (bei PDF)