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

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.

On 2014-Jan-16, at 04:45 , DHEERAJ CHILAPPAGARI
[email protected] 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.
http://prawn.majesticseacreature.com/manual.pdf

-Rob

Rob B.
[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs