How to display web pages in a printable PDF document in ColdFusion

cfdocument and cfhttp - display web pages in printable document

cfdocumentDispalyWebPages.cfm


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfdocument and cfhttp tag: how to display web pages in printable document</title>
</head>

<body>
<cfhttp url="http://www.gmail.com/" resolveurl="yes">

<cfdocument format="pdf">
 <cfoutput>
     #cfhttp.FileContent#
    </cfoutput>
</cfdocument>

</body>
</html>






More ColdFusion examples