CFdocument - Show footer in printable document
cfdocumentFooter.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfdocument tag: how to show footer in printable document as cfdocumentitem type footer</title>
</head>
<body>
<cfquery name="qCenters" datasource="cfdocexamples" maxrows="11">
SELECT Center_ID, Name, City FROM CENTERS
</cfquery>
<cfdocument format="pdf">
<cfoutput>
<cfdocumentitem type="footer">
Page Footer <br />Current Page Number: #cfdocument.currentpagenumber#
</cfdocumentitem>
<cfdocumentsection>
<h4 style="color:DarkCyan; font-style:italic">
cfdocument example: display document footer
</h4>
<cftable query="qCenters" colheaders="yes" htmltable="no" border="no">
<cfcol header="Center ID" text="#Center_ID#">
<cfcol header="Center Name" text="#Name#">
<cfcol header="City" text="#City#">
</cftable>
<cfdocumentitem type="pagebreak">
</cfdocumentitem>
<h3 style="color:DimGray; font-style:italic">
This is a new page
</h3>
</cfdocumentsection>
</cfoutput>
</cfdocument>
</body>
</html>