How to create a PDF document in ColdFusion

cfdocument - create printable pdf format document


<!DOCTYPE html>

<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfdocument tag: how to create printable pdf format document in coldfusion</title>


<cfquery name="qCourses" datasource="cfdocexamples" maxrows="10">
 SELECT Course_ID, Number, Descript from COURSES

<cfdocument format="pdf">
    <h3 style="color:OrangeRed; font-style:italic">
        cfdocument example: Printable pdf document
 <cftable query="qCourses" colheaders="yes" htmltable="no" border="no">
     <cfcol header="Course ID" text="#Course_ID#" align="left">
     <cfcol header="Number" text="#Number#" align="left">
     <cfcol header="Description" text="#Descript#">


More ColdFusion examples