# PDF::Writer and simpletable height

**URL:** <https://rubytalk.org/t/pdf-writer-and-simpletable-height/40964>\
**Category:** ruby-talk\
**Created:** [27 September 2007 06:53 UTC](https://rubytalk.org/t/pdf-writer-and-simpletable-height/40964 "2007-09-27T06:53:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pekka\_Paal](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@Pekka\_Paal](https://rubytalk.org/u/Pekka_Paal)\
**Post date:** [27 September 2007 06:53 UTC](https://rubytalk.org/t/pdf-writer-and-simpletable-height/40964/1 "2007-09-27T06: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.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Austin\_Ziegler5](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/austin_ziegler5/32/1985_2.png) [@Austin\_Ziegler5](https://rubytalk.org/u/Austin_Ziegler5)\
**Post date:** [27 September 2007 17:02 UTC](https://rubytalk.org/t/pdf-writer-and-simpletable-height/40964/2 "2007-09-27T17:02:17Z")

</div>

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

> **···**
>
> On 9/27/07, Pekka Paal \<pege83@gmail.com\> wrote:
> 
> > I was wondering if there's any way to track the height of a simpletable?
> 
> --  
> Austin Ziegler \* halostatue@gmail.com \* [http://www.halostatue.ca/](http://www.halostatue.ca/)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* austin@halostatue.ca \* [You are in a maze of twisty little passages, all alike. // halo • statue](http://www.halostatue.ca/feed/)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* austin@zieglers.ca
