Sunday 15 June 2014

ruby on rails - Prawn PDF - How to get the height of a text box -


I have a formatted_tex_box with dynamic text that looks like the box spreads well when it is not specifically provided.

The problem is that the cursor does not seem to be moving to the bottom of the box, so my text overlaps with text in the formatted_tex_box.

If I can set the height of the text box, then I can use move_down in the same way.

Is there a way to set the height of the text_box on the page?

    1.   features_box = :: prone :: text :: formatted :: box.newe (feature_text .flatten, {at: [pdf.bounds.left + 3.in, @ pdf. 
    2. features_box.render

    3. Move cursor or start new box in another Height

  • No comments:

    Post a Comment