I have a cfm that which generates an HTML with many tables. The content of the HTML is captured using CFSAVECONTENT. The number rows in each table varies.
<!--- Table n>
<!--- Table n+1 --->
<!--- Table n + 2 --->
I want to use <cfdocument format="PDF"> to print the HTML. The requirement is that I must print as many tables as possible on one page.
If a subsequent table will not fit on the current page, there should be a form feed to the next page.
A table is not allowed to print partially on a page and then overflows to the next page.
Any code to help me solve this problem is appreciated.
Form Length = 80 rows
Table 1 has 20 rows
Table 2 has 30 rows
Table 3 has 50 rows.
Table 3 should print on a new page