Stylesheets in PDF (Prawn)

2 views
Skip to first unread message

Jeffrey Bonson

unread,
Aug 27, 2010, 4:53:58 AM8/27/10
to rubyonra...@googlegroups.com
Hi,

Can we use stylesheet classes inside Pdf reports?

i am trying to change the header_color from b7e3fe to .heading oh the
stylesheet, inside the table


file:heading.pdf.prawn
texts=[""],[""]
pdf.table texts,
:headers => [" Heading "],
:header_color => 'b7e3fe',

file: public/stylesheets/style.css
.heading { font-family: "trebuchet ms", Verdana, Arial, Helvetica,
sans-serif; font-size: 11px; background: #E5E5E5; color: #0D0E0E;
font-weight: bold; padding-left:10px; line-height: 20px;}
--
Posted via http://www.ruby-forum.com/.

Reply all
Reply to author
Forward
0 new messages