• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfdocument problem?

Community Beginner ,
Feb 22, 2016 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

611

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
community guidelines
Advocate ,
Nov 29, 2017 Nov 29, 2017

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines
Resources
Documentation