Dynamic footer size with auto generated new page

30 views
Skip to first unread message

Larissa Reis

unread,
Jun 5, 2017, 3:30:46 PM6/5/17
to Prawn
Hello everyone,

I need to skip a specific amount of inches only on the first page of a document. The document content is dynamic, so new pages will be created automatically by text. I tried two approaches but couldn't find out how / if it's possible to implement them using prawn:

1) Insert a box at the bottom that will force the content at the top to continue at the next page when it hits the box. 
2) Specify different margin only for the first page.

For the second approach, I couldn't change the margins for the second page on since I don't control new pages given the content is dynamic. The problem with the first approach seems to be that bounding boxes overlap by default unless I define their height, however, I can't put the text content on a bounding box with a fixed height as that would affect the second page going forward.

Is something like that possible with prawn?
Reply all
Reply to author
Forward
0 new messages