ted.byers has asked for the wisdom of the Perl Monks concerning the following question:
Here is my column properties specification:
my $col_props1 = [ {min_w => 170,font => $pdf->corefont("Helvetica", -encodin +g => "utf8"),font_size => 10}, {font => $pdf->corefont("Helvetica", -encoding => "utf8"), +font_size => 10,width => 80,justify => 'right'} ];
I am using Acivestate perl 5.16, and the problem is happening with the package PDF::Table.
The objective is to have three or four tables that are about 3.5 inches width, aligned one above the other, but with about an eigth of an inch between each table. That part is easy, but the over all effect looks like garbage because with the above column property specifications, every table ends up with different column widths, as if PDF::Table is ignoring the column specification entirely. I am being asked to make all the tables have the same column widths and nothing I have tried, including specifying minimum and maximum column widths for both columns has produced any consistency at all in the tables produced. (The contents of each table is comprised of a value description in the left column and a dollar amount in the right column, if that matters).
This is driving me insane! What do I have to do to get these tables to have the same column widths? Yes, I have checked the obvious and ensured that all the tables are given the same column properties object (column_props => $col_props1 is the last item in the table constructor).
Thanks.
Ted
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: PDF::Table seems to ignore column properties when there are but two columns
by rjt (Curate) on Jul 09, 2013 at 23:24 UTC | |
by ted.byers (Monk) on Jul 10, 2013 at 02:31 UTC | |
by ted.byers (Monk) on Jul 10, 2013 at 14:56 UTC | |
by poj (Abbot) on Jul 10, 2013 at 18:11 UTC | |
by ted.byers (Monk) on Jul 10, 2013 at 20:13 UTC |