Skip to content

Instantly share code, notes, and snippets.

@neokoenig
Created April 5, 2021 18:44
Show Gist options
  • Save neokoenig/4614fd933bb7b9e9fc05f56f1e9274a7 to your computer and use it in GitHub Desktop.
Save neokoenig/4614fd933bb7b9e9fc05f56f1e9274a7 to your computer and use it in GitHub Desktop.
<cfprocessingdirective pageencoding="utf-8">
<cfheader name="Content-Disposition" value="attachment; filename=myworddoc.doc" charset="utf-8">
<cfcontent type="application/msword; charset=utf-8">
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<style>
<!--[if gte mso 9]>
<xml>
<w:WordDocument>
<w:View>Print</w:View>
<w:Compatibility>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:Zoom>100</w:Zoom>
<w:DoNotOptimizeForBrowser/>
</w:WordDocument>
</xml>
<![endif]-->
<style>
<!--
@page Section1
{
size:8.27in 11.69in;
margin:1.27cm 1.27cm 1.27cm 1.27cm;
mso-paper-source:0;
}
div.Section1 {page:Section1;}
p.MsoHeader {
}
p.MsoFooter {
}
-->
</style>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<cfoutput>
<body>
<h1>Hi</h1>
</body>
</html>
</cfoutput>
<cfabort>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment