# Pdf.table

**URL:** <https://www.ruby-forum.com/t/pdf-table/194951>\
**Category:** Rails\
**Created:** [September 14, 2010, 7:03am UTC](https://www.ruby-forum.com/t/pdf-table/194951 "2010-09-14T07:03:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rorjeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b9e5f3/32.png) [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Post date:** [September 14, 2010, 7:03am UTC](https://www.ruby-forum.com/t/pdf-table/194951/1 "2010-09-14T07:03:59Z")

</div>

Hi,  
i have a table inside Prawn file like

grandtotal=@sql\_query.size  
total=[""],[""]  
pdf.table total,  
:width =\> 768,  
:headers =\> ["Grand Total : #{grandtotal} "],  
:header\_color =\> ‘e5e5e5’,  
:border\_style =\> :underline\_header

there are other data above them. what happens is, when the grandtotal  
prints on the last line of a page,(in some cases only), they are  
printing it twice …like, on the last line on page 1 and first line of  
page 2.  
Is it any property of pdf.table to print it on the next line ALSO, if  
there is not much space on the previous page?

please advice  
~Jeff
