Hello,
Aspose.Words ignores the ODT table property style:may-break-between-rows="false" (option “Allow table to split across pages and columns” unchecked in LibreOffice / OpenOffice Writer). When such a table does not fit at the bottom of a page, LibreOffice and OpenOffice move it entirely to the next page. Aspose.Words splits it between two rows.
Reproduced with Aspose.Words for Java 26.5.0 and with your online converter (Convert Openoffice To PDF Online, PDF produced by Aspose.Words for .NET 26.9.0).
The attached zip contains unsplittable-tables.odt: A4 page, 12 tables of 8 rows, every table with style:may-break-between-rows="false" and every row with fo:keep-together="always".
Document doc = new Document("unsplittable-tables.odt");
doc.save("unsplittable-tables.pdf");
doc.save("unsplittable-tables.docx");
- LibreOffice 26.2: 4 pages, no table split.
- Aspose.Words 26.5 (Java) and 26.9 (online converter): 4 pages, tables 4, 7 and 10 split across pages 1-2, 2-3 and 3-4.
- DOCX / DOC output: the rows keep “Allow row to break across pages” off, but no paragraph gets “Keep with next” (0 of 204 paragraphs), so Microsoft Word splits the same tables.
Expected: the ODT reader honours this table property, for instance by setting KeepWithNext on the paragraphs of every row except the last one, which is what LibreOffice writes when it saves such a table to DOC or DOCX, and what your support recommends to keep a table on one page.
Attached (zip): the ODT, the PDF produced by Aspose.Words 26.5 and the PDF produced by LibreOffice.
Thank you.
unsplittable-tables.zip (47.2 KB)