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 these values to headers or/and footers left and right side.
Any suggestion would be helpful.