From 8dbc492863564ea93b9422a5fc791c63a329153a Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 31 Oct 2015 17:02:30 +0100 Subject: Some more tweaks to make PDF look good. --- lib/pdf_form.rb | 14 ++++++++------ 1 file 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 ", :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 -- cgit v1.2.3