I have a docx that I'm trying to convert to a pdf. The docx has a table (in this case, with 16 rows). The table only has one column. Each cell within the table has 6 lines of text within it. The table is large enough that when converted to PDF, it covers two pages.
I have the table set up where the option to split rows across pages is unchecked for each row. Looking at the Online Package Explorer, I can see that each row has the following:
However, when I convert the docx to a pdf, row 10 splits across two pages, half of the cell lines remaining on page 1, the other half appearing at the top of page 2.
I have attached the .docx which has the large table, the .pdf that was created through docx4j, as well as the program I used to convert from docx to pdf. (It's the ToFo program I also used in pdf-output-f27/unicode-ballot-boxes-and-pdf-creation-t1929.html )
Is there a setting or something I need to change for Docx4j to not separate rows across pages when cantSplit is present? If Docx4J cannot do this, that's fine, I will then just split the table so that only so much appears on each page without fear of splitting rows.
On a related note, when the row splits, on the first page of the split, the bottom cell border does not appear at the bottom of the page (as well as the top cell border does not appear on the following page). This makes sense, as the cell is on two pages and does not 'end/begin' as the cell spans two pages. However, is there a way that the border can appear? In another document, I have a comment that I place in a cell of a table. When I perform the xml binding, the comment placed in this cell may be large enough to span the page/pages. It would be nice if I could keep a border around the cell.
Thank you for any assistance. Sorry for slipping in the second issue into this post.