You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to implement a template for my small invoicing script. I intend to have a more complex template on first page and simple template for all following pages (just the company logo with some lines). If I create the new page with start_new_page, prawn shows the template. But if the content breaks out of the bounding box, the new page will be generated without my template. I've look deeper in the gem, into the file "bounding_box.rb".
def move_past_bottom
if @document.page_number == @document.page_count
@document.start_new_page
else
@document.go_to_page(@document.page_number + 1)
end
end
The new page is generated without any templates... I would like to use for further pages the second page of my template.
def move_past_bottom
if @document.page_number == @document.page_count
@document.start_new_page :template => 'tpl_invoice.pdf', :template_page => 2
else
@document.go_to_page(@document.page_number + 1)
end
end
The text was updated successfully, but these errors were encountered:
I'm trying to implement a template for my small invoicing script. I intend to have a more complex template on first page and simple template for all following pages (just the company logo with some lines). If I create the new page with start_new_page, prawn shows the template. But if the content breaks out of the bounding box, the new page will be generated without my template. I've look deeper in the gem, into the file "bounding_box.rb".
The new page is generated without any templates... I would like to use for further pages the second page of my template.
The text was updated successfully, but these errors were encountered: