Skip navigation
Currently Being Moderated


Aug 8, 2012 1:10 AM

  • Currently Being Moderated
    Calculating status...
    Aug 8, 2012 1:10 AM   in reply to Community Help

    Adding a footer to a PDF report that spans 40 pages is doubling the time taken to create the report without footer. Is there any way to reduce the time taken?

    Mark as:
  • Currently Being Moderated
    Aug 8, 2012 3:31 PM   in reply to Community Help

    As you know you cannot evaluate cfdocument.currentpagenumber to display a different footer for a particular page even with evalAtPrint set to true. Here is my solution.


    <cfset pagenum = 0>

    <cfdocumentitem type="footer" evalAtPrint="true">

    <cfset pagenum = pagenum + 1>

    <cfif pagenum eq "1">

    First page footer


    Other pages footer



    Mark as:
  • Currently Being Moderated
    Sep 11, 2012 8:31 AM   in reply to Community Help

    This tag has a problem and this page doesn't have any information about it.

    cfdocumentitem tag throws error from time to time because it doesn't recognize variables defined outside of the tag.


    The solution is pass variables as attributes and use attributes scope inside cfdocumentitem tags. I found this solution here. m


    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points