Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Colspan in PDF Help!

by igelkott (Curate)
on Feb 12, 2013 at 20:59 UTC ( #1018446=note: print w/ replies, xml ) Need Help??


in reply to Colspan in PDF Help!

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.


Comment on Re: Colspan in PDF Help!
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018446]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2015-07-05 16:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls