<cfdocumentitem>

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

This tag may have a body.

This tag is also supported within <cfscript>

Requires Extension: PDF Extension

<cfdocumentitem type=string name=string evalatprint=boolean ><!--- body --->[</cfdocumentitem>]
Attribute Description
type
string, required

Specifies the action:

  • pagebreak (starts a new page at the location of the tag)
  • header (uses the text between in the body of the tag as the running header)
  • footer (uses the text between the body of the tag as the running footer)
  • bookmark (set a bookmark, use the attribute name to define the name of the bookmark)
name
string, optional

used only for type bookmark, name of the bookmark to define.

Unimplemented Attribute(s)

Attribute Description
evalatprint
boolean, optional

Determines if the contents of the cfdocumentitem tag body has to be evaluated at the time of printing the document.

  • true: evaluates the contents of the cfdocumentitem tag body only at the time of printing the document.
  • false (default): evaluates the contents of the cfdocumentitem tag body immediately.
* unimplemented *

Examples

Simple example for cfdocumentitem

<cfdocument format="pdf">
	<h1>Welcome to Lucee</h1>
	<h5>Example Page</h5>
	<p>Example for <b>CfdocumentItem</b></p>
	<cfdocumentitem type="header">
		<h2><i>Example Header</i></h2>
	</cfdocumentitem>
	<cfdocumentitem type="footer">
		<h2><i>Example footer</i></h2>
	</cfdocumentitem>
</cfdocument>

See also