Keeping a row from breaking across pages - row content bigger than page

I have a table, which rows I must prevent from page-breaking across the page.
However, there are cases, where row content in cells is bigger than the whole page. Therefore, content is not visible and causes not rendered / exported content.
How to solve this issue?

Cannot use RowFormat.getHeight() at this case.

Attached code sample with exported pdf and docx.
too_big_row.zip (50.7 KB)

@deivydasr

Please set the value of RowFormat.AllowBreakAcrossPages property to true to get the desired output.

row.getRowFormat().setAllowBreakAcrossPages(true);

I have a table, which rows I must prevent from page-breaking across the page.
However, there are cases, where row content in cells is bigger than the whole page. Therefore, content is not visible and causes not rendered / exported content.

This paragraph tells that I must have this option on all rows except for longer than the page ones.

Either way, I found the solution to my question (one line property only needed).
We can close this case.

@deivydasr

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.