summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-10-31 17:02:30 +0100
committerHarald Eilertsen <haraldei@anduin.net>2015-10-31 17:02:30 +0100
commit8dbc492863564ea93b9422a5fc791c63a329153a (patch)
treee8743ba8088a9c263b50f693139c125e1cae6cbe
parent19515493a17ca7ed3de6196dd41b14e478eaa906 (diff)
downloadnorsk-urskog-registrations-8dbc492863564ea93b9422a5fc791c63a329153a.tar.gz
norsk-urskog-registrations-8dbc492863564ea93b9422a5fc791c63a329153a.tar.bz2
norsk-urskog-registrations-8dbc492863564ea93b9422a5fc791c63a329153a.zip
Some more tweaks to make PDF look good.
-rw-r--r--lib/pdf_form.rb14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/pdf_form.rb b/lib/pdf_form.rb
index a52d315..2298f6b 100644
--- a/lib/pdf_form.rb
+++ b/lib/pdf_form.rb
@@ -40,6 +40,11 @@ class PDFForm
end
end
+ if @document.cursor < 120
+ @document.start_new_page
+ end
+
+ subheading("Fullmakt:")
end_text
@document.number_pages "#{@band.name} - Norsk Urskog 2016 - Side <page>", :align => :center, :at => [0, 0]
@@ -111,10 +116,6 @@ class PDFForm
end
def end_text
- if @document.cursor < 120
- @document.start_new_page
- end
-
@document.span(@document.bounds.right) do
@document.pad(5) do
@document.text((<<-END.gsub(/\s+/, ' ') + "\n\n"), :inline_format => true)
@@ -122,8 +123,9 @@ class PDFForm
#{@band.name} har fullmakt til å melde ovennevnte låter på Norsk Urskog Metal Sampler 2016:
END
end
- @document.pad_bottom(12) { field("Dato/Sted:", 5.cm) }
- @document.pad_top(12) { field("Sign:", 10.cm) }
+ @document.pad_bottom(32) { field("Dato/Sted:", 10.cm) }
+ @document.pad_bottom(32) { field("Sign:", 10.cm) }
+ field("Leselig navn:", 10.cm)
end
end
end