Sunday, 15 April 2012

pdf - Force a page break and including headers when using cfdocument? -



pdf - Force a page break and including headers when using cfdocument? -

i'm generating <table> , converting pdf using <cfdocument>. include table header on new page when runs over. around every 30th line.

here current code. <cfif> supposed forcefulness break @ every new line. however, seems create 4 blank pages content @ bottom, formatted same before

<cfloop query="one"> <cfif not(one.currentrow mod 30)> <cfdocumentitem type="pagebreak" /> <th>contact name</th> </cfif> <cfoutput> #one.contactname# </cfoutput>

fixed. here used header on every page. farther note, if need adjust document header size, include margintop="2.2" in main tag , adjust taste.

<cfdocumentitem type="header" evalatprint="true" > <td>contact name</td> </cfdocumentitem>

pdf coldfusion page-break cfdocument

No comments:

Post a Comment