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


In reply to PDF::Table seems to ignore column properties when there are but two columns by ted.byers

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.