# PDF::Writer and simpletable height

**URL:** <https://www.ruby-forum.com/t/pdf-writer-and-simpletable-height/115656>\
**Category:** Ruby\
**Created:** [September 27, 2007, 8:53am UTC](https://www.ruby-forum.com/t/pdf-writer-and-simpletable-height/115656 "2007-09-27T08:53:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pege](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f1d935/32.png) [@pege](https://www.ruby-forum.com/u/pege)\
**Post date:** [September 27, 2007, 8:53am UTC](https://www.ruby-forum.com/t/pdf-writer-and-simpletable-height/115656/1 "2007-09-27T08:53:47Z")

</div>

Hi!

I was wondering if there’s any way to track the height of a simpletable?  
I mean the height of course increases if rows are split over two or more  
rows, which means that I can’t blindly check for amount of objects that  
are inserted into the table.

So what I need is a way to check if the table will fit on the current  
page, else move the whole table to the next page.

Thanks for any help on this.

---

<div class="post-metadata">

**Author:** ![pege](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f1d935/32.png) [@pege](https://www.ruby-forum.com/u/pege)\
**Post date:** [September 27, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/pdf-writer-and-simpletable-height/115656/2 "2007-09-27T19:03:04Z")

</div>

On 9/27/07, Pekka P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I was wondering if there’s any way to track the height of a simpletable?

There’s no need to do that, but there’s also no way to force a table  
to be on a single page, just to prevent the table from splitting rows  
across pages.

-austin
