From dc6c9221981e201445d5137ce6e4c9f45e780716 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 4 Oct 2015 16:10:35 +0200 Subject: Add page numbers to PDF --- lib/pdf_form.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pdf_form.rb b/lib/pdf_form.rb index c472fd9..88cb44d 100644 --- a/lib/pdf_form.rb +++ b/lib/pdf_form.rb @@ -37,6 +37,7 @@ class PDFForm @document.stroke { @document.horizontal_rule } end + @document.number_pages "Side ", :align => :center, :at => [0, 0] @document.render_file "#{@band.name}.pdf" end -- cgit v1.2.3