cfdocumentitem

Specifies action items for a PDF or FlashPaper document
created by the cfdocument tag.

  <cfdocumentitem type="pagebreak">

 cfdocumentitem(type="pagebreak");

Attribute Reference

type string
Required

Specifies the action:
- pagebreak: start a new page at the location of the tag.
- header: use the text between the
and
tags as the running header.
- footer: use the text between the
and
tags as the running footer.
Values:
  • pagebreak
  • header
  • footer

evalAtPrint boolean

Specifies whether to evaluate expressions inside cfdocumentitem tag at runtime.
Values:
  • true
  • false

Examples
Sample code using the cfdocumentitem tag

Insert a pagebreak into the document

cfdocumentitem( type="pagebreak" );

Insert a page footer into the document

cfdocumentitem( type="footer" ) {
    writeOutput(' -- My Page Footer -- ');
}

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub