LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   perl pp util problem (https://www.linuxquestions.org/questions/programming-9/perl-pp-util-problem-742509/)

madhi 07-24-2009 11:44 AM

perl pp util problem
 
Hi,
I am using pp util to create binary by issuing
pp -B -p -o ex ex.pl

In my code I use PDF::API2 and PDF::Table modules which will write data in PDF.

#data to write
my $data =[
["Name ", "$name ", ],
["Age", "$name ", ],
];

# table creation
$pdftable->table(
$pdf,
$page,
$data,
x => 150,
w => 500,
start_y => 400,
next_y => 750,
start_h => 700,
next_h => 720,
font => $pdf->corefont('Helvetica'),
font_size => 11,
padding => 5, # cell padding
padding_top => 5, # top cell padding, overides padding
padding_right => 5, # right cell padding, overides padding
padding_left => 5, # left cell padding, overides padding
padding_bottom => 5, # bottom padding, overides -padding
border => 1,
cell_props => $cell_props, # see section CELL PROPERTIES
column_props => $col_props,
);

Running ‘perl ex.pl’ I can get the desired output in PDF file
After packaging using pp util if I run ‘./ex’ only Name and Age is displayed and no value for $name, $age in PDF as table
Can any help body help me out

Thanks,
Madhi



All times are GMT -5. The time now is 10:00 PM.