# Ruby PRAWN PDF

**URL:** <https://www.ruby-forum.com/t/ruby-prawn-pdf/192711>\
**Category:** Ruby\
**Created:** [August 4, 2010, 12:07pm UTC](https://www.ruby-forum.com/t/ruby-prawn-pdf/192711 "2010-08-04T12:07:52Z")\
**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 4, 2010, 12:07pm UTC](https://www.ruby-forum.com/t/ruby-prawn-pdf/192711/1 "2010-08-04T12:07:52Z")

</div>

Is there a simpler code to set the Headers and Footers on all N pages in  
a PDF file that is generated by PRAWN Plugin.

the codes are to be written in a

“report.pdf.prawn” file, which is a direct coding area of the PDF view  
page  
The below are the codes in the file report.pdf.prawn

pdf.text "Creation Date " + Time.now.strftime(’%d-%m-%Y’)

pdf.text “Page Count:#{pdf.page\_count}”

All i want is to position tes values to header’s or/and footers left and  
right side. Any suggestion would be helpful. Thanks
