Creates PDFs from HTML using a WebKit based rendering engine.
					
						  
					
					<cfhtmltopdf>html</cfhtmltopdf>
					
				
							  cfhtmltopdf() { writeOutput(html); };
						
noneAES_128RC4_40RC4_128RC4_128MnoneportraitportraitlandscapenoAllowPrintingAllowModifyContentsAllowCopyAllowModifyAnnotationsAllowFillInAllowScreenReadersAllowAssemblyAllowDegradedPrintingAllowSecureAllNoneletterlegalletterA4A5B4B5B4-JISB5-JIScustominincmEnglishPut HTML inside the tags to render it as a PDF. When the destination attribute is omitted the pdf is sent back to the browser.
<cfhtmltopdf>
  <h1>Hello World</h1>
</cfhtmltopdf>Use the source attribute to specify an external url.
<cfhtmltopdf
 destination="usage_example.pdf" overwrite="yes"
 source="http://www.google.com/"
 unit="in" pageheight="8" pagewidth="4"
 pagetype="custom">
</cfhtmltopdf>Uses the margintop, marginbottom, marginleft, marginright to set the page margins
<cfhtmltopdf destination="usage_example2.pdf"
 source="http://www.google.com" overwrite="true" 
 orientation="portrait" pagetype="A4" margintop="1" marginbottom="1" 
 marginleft="1" marginright="1">
</cfhtmltopdf>Uses the ownerpassword, encryption, and permissions attributes to produce a password encrypted pdf.
<cfhtmltopdf 
 source="http://www.google.com"
 ownerpassword="owner" userpassword="user"
 encryption="RC4_128" permissions="AllowPrinting,AllowCopy">
</cfhtmltopdf>Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.