You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building a pdf with dynamic data. I have multiple tables. The problem I'm having is when the document has only space for one row, which is the header, the header repeats twice in first page and second page again. This happens because I used testTable.showHeadersOnEveryPage = true.
I want the headers repeating in every page. All I want is to find a way to check if the first 2 rows of the table fit in the remaining space of the page, if not I can move the table to the next page.
ℹ I have a table beginning almost at the end of the page. I have no way of knowing the position since it would always be dynamic. The problem occurs only when there's space for header in the page. The header repeats in the new page. If I can calculate the space left in the page, I can move the table to next page.
I cannot provide the whole document since it's not my personal project. If the data provided is not enough I can create a sample app and provide the link here. Thanks
The text was updated successfully, but these errors were encountered:
I am building a pdf with dynamic data. I have multiple tables. The problem I'm having is when the document has only space for one row, which is the header, the header repeats twice in first page and second page again. This happens because I used testTable.showHeadersOnEveryPage = true.
I want the headers repeating in every page. All I want is to find a way to check if the first 2 rows of the table fit in the remaining space of the page, if not I can move the table to the next page.
What did you do?
What did you expect to happen?
ℹ I have a table beginning almost at the end of the page. I have no way of knowing the position since it would always be dynamic. The problem occurs only when there's space for header in the page. The header repeats in the new page. If I can calculate the space left in the page, I can move the table to next page.
What happened instead?
TPPDF Environment
TPPDF version: ℹ 2.4.1
Xcode version: ℹ 14.1
Swift version: ℹ 5
Demo Code / Project
I cannot provide the whole document since it's not my personal project. If the data provided is not enough I can create a sample app and provide the link here. Thanks
The text was updated successfully, but these errors were encountered: