Answered
cfhtmltopdfitem _LASTPAGENUMBER Not Working
Hey all. I have a footer in my PDF document and I'm trying to show "Page 1 of 2", for example.
<cfhtmltopdfitem type="footer" align="left">
<cfoutput>
<body style="padding: 0px; margin: 0px; width: 100%; border-top: 1px solid ##000000;">
<p style="padding: 0px; margin: 5px 0px 0px 0px; width: 50%; float: left;">As of #dateFormat(now(), "mmm dd, yyyy")#</p>
<p style="padding: 0px; margin: 5px 0px 0px 0px; width: 50%; float: left; text-align: right;">Page _PAGENUMBER of _LASTPAGENUMBER</p>
</body>
</cfoutput>
</cfhtmltopdfitem>
When I render the PDF, it shows "Page 1 of _LASTPAGENUMBER", so it looks like it's not getting a proper value for _LASTPAGENUMBER.
I have also tried using:
Page #cfhtmltopdf.currentPage# of #cfhtmltopdf.totalPageCount#
But it outputs the same thing as above.
