Forum How do I...?

Absolutely positioned element inside table cell does not paginate to next page

nishant
Hi PrinceXML team,

I’ve run into an issue when using absolutely positioned elements inside table cells.

When an absolutely positioned <div> inside a <td> contains content taller than the page, Prince renders it correctly on the first page, but the overflow content does not continue onto the next page — it gets cut off at the page boundary.

Example
<table>
<tr>
<td style="position: relative; height: 200mm;">
<div style="position: absolute; top: 0; left: 0; width: 100%;">
<p>
Very long content here that should continue onto the next page,
but currently gets cut off when it exceeds the page height.
</p>
</div>
</td>
</tr>
</table>

Expected behavior

Ideally, Prince should either:

Allow the absolutely positioned element to paginate naturally, or

Provide a mechanism to anchor it inside the cell while enabling content to flow to the next page.

Environment

PrinceXML version: [15.2]

OS: [Windows]

Is this the expected behavior, or is there a recommended workaround for paginating absolutely positioned content within table cells?

Thanks!
Nishant