I am dynamically generating a table in Google Docs using the Google Docs API, with the table data provided in JSON format from an API. I need to check if the table rows across multiple pages. If it does, I want to split the table into separate tables and add a header row to the new table at the start of the next page. I have text paragraph also on the pages. How can I implement this using Java in a Spring Boot application?
I tried for checking page brakes & page number changes as well but as table has dynamic value can not calculate for the indexes.