Highlighted

cfdocument problem?

Community Beginner ,
Feb 22, 2016

Copy link to clipboard

Copied

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

TOPICS
Advanced techniques

Views

550

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

cfdocument problem?

Community Beginner ,
Feb 22, 2016

Copy link to clipboard

Copied

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

TOPICS
Advanced techniques

Views

551

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Feb 22, 2016 0
Advocate ,
Nov 29, 2017

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 29, 2017 0