I am creating a dynamic PDF file in ColdFusion and have a "pagebreak" problem. The page in question can have 1 entry or up to 60+ entries. Each entry is displayed in 2 rows of the table. Some of the returned records are shared between pages (the first line is at the end of the first page, the second line is the top line of the next).
An example of a record in displayable HTML:
<tr> <td>Title</td><td>Price</td> <td colspan="2">Description</td> </tr>
In a client request I am trying to display = <9 entries per page .
Here is an example I tried:
<cfdocument format="PDF"> <cfoutput query = "sqllookup"> <cfset loopcount = loopcount + 1> <cfif loopcount EQ '9'> <cfdocumentitem type="pagebreak" /> <cfelse> <tr> <td>#Title#</td><td>#Price#</td> <td colspan="2">#Description#</td> </tr> </cfif> </cfoutput> </cfdocument>
This does not work (it only hides the 9th record). I tried several different ideas, and now I'm at a standstill. Am I watching something?
Thanks in advance.
ColdFusion MX 7. (I also ran the fix for the text clipping issue. Http://kb2.adobe.com/cps/402/kb402093.html )
coldfusion pdf page-break cfdocument
nope_four
source share