Welcome Guest Search | Active Topics | Sign In | Register

EO PDF Page Break in table with unknown text length and row count Options
Vaughan
Posted: Thursday, April 23, 2015 10:08:58 PM
Rank: Advanced Member
Groups: Member

Joined: 7/2/2008
Posts: 35
I am creating a PDF using vb.net an EO.pdf. The PDF contains a three-column table with an unknown number of rows and user-defined data in each cell. The User may also choose landscape or portrait. I need to be able to force a page break when there is no vertical space left for the next row. How can I determine the height of the table after each row has been inserted, in order to trigger a test to throw a new page ??d'oh!
eo_support
Posted: Friday, April 24, 2015 5:07:05 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

You can put this CSS rule in your page and the converter will do that for you:

Code: CSS
tr { page-break-inside: avoid; }


This will instruct the converter to try not to break a table row into different pages. As a result, if the remaining space on the current page is not enough to fit the entire row, that row will be pushed to the next page.

You can find more information about page breaking here:

http://www.essentialobjects.com/doc/4/htmltopdf/paging.aspx

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.