Skip to main content
Known Participant
February 22, 2016
Question

cfdocument problem?

  • February 22, 2016
  • 1 reply
  • 692 views

I am using ColdFusion 11 and have a page that creates a PDF using the cfdocument tag. Nested in the cfdocument tag is the following markup

<cfdocumentitem type="header" evalAtPrint="false">

    <cfif cfdocument.currentPageNumber GT 1>

         <p>page header</p>

    </cfif>

</cfdocumentitem>


The problem I am experiencing is this header is showing up on page 1 when I only want the header to show up on pages greater than 1. Any insight you could provide would be appreciated....

Thanks

This topic has been closed for replies.

1 reply

EddieLotter
Inspiring
November 29, 2017

I don't use cfDocument myself, but I suspect CurrentPageNumber will only work if evalAtPrint is set to "true" in the cfDocumentItem tag.

 

Cheers

Eddie