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

cfdocumentitem

Explorer ,
Aug 08, 2012 Aug 08, 2012

Copy link to clipboard

Copied

This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7758.html

Views

537

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
Explorer ,
Aug 08, 2012 Aug 08, 2012

Copy link to clipboard

Copied

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?

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
New Here ,
Aug 08, 2012 Aug 08, 2012

Copy link to clipboard

Copied

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

<cfelse>

Other pages footer

</cfif>

</cfdocumentitem>

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
New Here ,
Sep 11, 2012 Sep 11, 2012

Copy link to clipboard

Copied

LATEST

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.

http://jacfb.com/index.cfm/2010/1/9/Passing-agruments-to-cfdocumentitem

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