In attachment you can find the outputs.
What I was thinking is the following
- For every table create a new aspose document instance
- Iterate over the table (in the new document) to detect where the table crosses the pages
- Where the table is crossing the page border, split the table.
This way I have split the each single table instance in the original document into multiple tables each fitting on a page.
The problem is that I do not know how I can detect where the table rows cross the page boundary.
What I did in word is very simple.
I copies evers single table to a separate document.
Then visually I see where the table goes to the next page.
Move to the row and then instructt word to split the table at that row
So then the single table has become more tables.
And each table fits on a single page.
As such also the TIFF image of that table will fit on a single page.
For the second table, it was a bit more tricky, That table has a repeating header.
So I did split the table as described above and then introduced the header
I hope the attached documents (3, 1 document for each table) explain sufficiently what I want to achieve.
TablesExpectedOutput.zip (127.8 KB)