O'Reilly logo

Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started by Charlie Arehart, Raymond Camden, Ben Forta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the <cfdocument> Tag

We’ll start with a really simple example. Listing 16.8 contains simple text wrapped within a pair of <cfdocument> tags. The generated output is seen in Figure 16.8.

Figure 16.8. Adobe PDF format is the most commonly used printable document format on the Web.
Listing 16.8. Print1.cfm—Basic PDF Generation
<!---
Name:        Print1.cfm
Author:      Ben Forta
Description: Simple printable output
Created:     07/10/2007
--->

<cfdocument format="pdf">
Hello world!
</cfdocument>

The code in Listing 16.8 couldn’t be simpler. By wrapping text in between <cfdocument> and </cfdocument> tags, content between those tags ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required