Hey support,
with setAllowBreakAcrossPages set to false Aspose will truncate the content of rows to a single page. This happens both for Word and PDF. Test code and output document are attached. I’m using Aspose 11.3
@Test
public void testLargeRow() throws Exception
{
DocumentBuilder docBuilder = new DocumentBuilder();
//begin table
Table table = docBuilder.startTable();
docBuilder.getRowFormat().setAllowBreakAcrossPages( false);
// The first cell
docBuilder.insertCell();
docBuilder.write("Cell 1, 1");
// The second cell
docBuilder.insertCell();
for ( int i = 0; i < 100; ++i)
{
docBuilder.writeln( "Row " + i + " out of 100");
}
// End the first row
docBuilder.endRow();
table.setAllowAutoFit( true);
// end table
docBuilder.endTable();
String docpath = new File( getBaseFolder(), "testLargeRow.doc").getAbsolutePath();
System.out.println( "Writing " + docpath + "…");
docBuilder.getDocument().save(docpath);
}
Regards,
Dragos