# Stylesheets in PDF (Prawn)

**URL:** <https://www.ruby-forum.com/t/stylesheets-in-pdf-prawn/193969>\
**Category:** Rails\
**Created:** [August 27, 2010, 10:53am UTC](https://www.ruby-forum.com/t/stylesheets-in-pdf-prawn/193969 "2010-08-27T10:53:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rorjeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b9e5f3/32.png) [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Post date:** [August 27, 2010, 10:53am UTC](https://www.ruby-forum.com/t/stylesheets-in-pdf-prawn/193969/1 "2010-08-27T10:53:58Z")

</div>

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;}
