Divides a PDF or FlashPaper document into sections.
By using this tag in conjunction with a cfdocumentitem
tag, each section can have unique headers, footers,
and page numbers.
<cfdocumentsection>
cfdocumentsection();
text/html
text/html
text/plain
application/xml
image/bmp
image/jpeg
image/png
image/gif
We've example to create pdf with documentsection in tag syntax
<cfdocument format="pdf" bookmark="yes">
<cfdocumentsection mimetype="text/html">
<table>
<tr>
<td>Coldfusuion</td>
<td>java</td>
</tr>
</table>
</cfdocumentsection>
</cfdocument>
We've example to create pdf with documentsection in script syntax and Used documentsection mime type as text/html.
<cfscript>
cfdocument (format="pdf",bookmark="yes"){
cfdocumentsection(mimetype="text/html"){
writeOutput("<table><tr><td>Coldfusuion</td><td>java</td></tr></table>");
}
}
</cfscript>
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.