How to start new pages automatically whenever the text string cannot fit on the current page in praw

11 views
Skip to first unread message

DHEERAJ CHILAPPAGARI

unread,
Jan 16, 2014, 4:45:42 AM1/16/14
to rubyonra...@googlegroups.com
I am trying to generate a PDF invoice using prawn with header, body and footer. The content of the body may change. I'm using bounding_box to place content in the body. If the content cannot fit on the current page body, it should automatically place the remaining content in body portion of the new page. Please help me with the coding.

Rob Biedenharn

unread,
Jan 16, 2014, 8:39:39 AM1/16/14
to rubyonra...@googlegroups.com
On 2014-Jan-16, at 04:45 , DHEERAJ CHILAPPAGARI <dheeru....@gmail.com> wrote:

I am trying to generate a PDF invoice using prawn with header, body and footer. The content of the body may change. I'm using bounding_box to place content in the body. If the content cannot fit on the current page body, it should automatically place the remaining content in body portion of the new page. Please help me with the coding.

This is the default behavior of Prawn. You should find an example of exactly this in the manual.

-Rob

Rob Biedenharn


Reply all
Reply to author
Forward
0 new messages