summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-10-04 16:10:35 +0200
committerHarald Eilertsen <haraldei@anduin.net>2015-10-04 16:10:35 +0200
commitdc6c9221981e201445d5137ce6e4c9f45e780716 (patch)
tree969e146351d884c55fe55e64f1df9ed431ecc6b8
parentff8c65d1c8969b8521ea54765c9e75bd764d516b (diff)
downloadnorsk-urskog-registrations-dc6c9221981e201445d5137ce6e4c9f45e780716.tar.gz
norsk-urskog-registrations-dc6c9221981e201445d5137ce6e4c9f45e780716.tar.bz2
norsk-urskog-registrations-dc6c9221981e201445d5137ce6e4c9f45e780716.zip
Add page numbers to PDF
-rw-r--r--lib/pdf_form.rb1
1 files changed, 1 insertions, 0 deletions
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 <page>", :align => :center, :at => [0, 0]
@document.render_file "#{@band.name}.pdf"
end