Copy link to clipboard
Copied
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>
Page #cfhtmltopdf.currentPage# of #cfhtmltopdf.totalPageCount#
But it outputs the same thing as above.
I may have figured out how to get it to work..
I had to add a pace between _LASTPAGENUMBER and my closing </p> tag. This still feels like an issue but at least I can finish my task.
Copy link to clipboard
Copied
I may have figured out how to get it to work..
I had to add a pace between _LASTPAGENUMBER and my closing </p> tag. This still feels like an issue but at least I can finish my task.