Until you find a proper solution, maybe a crude hack will do.
Change
['Primary Info','','','',],
to
['Primary Info','col$span','col$span','col$span',],
and similarly for the other lines you wish to "fix". (Obviously, you could use any other string in the place of 'col$span', as long as it won't appear naturally.)
Then make a new rule for 'col$span' to make the text the same color as the background:
} elsif ($cell eq 'col$span') {
$cell_props->[$j]->[$k] = {
font => $pdf->corefont("Helvetica", -encoding => "utf8"),
font_size => 1,
background_color => '#FFCA00', #
font_color => '#FFCA00', #
};
}
Not sure if the Total is exactly what you wanted but the others seem like what you want, even if it is cheating a bit.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|