Ruby PRAWN PDF

J

Jeffrey Bonson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,146
Messages
2,570,832
Members
47,374
Latest member
EmeliaBryc

Latest Threads

Top