Here is a code example:
<cfdocument orientation="portrait" pagetype="Custom" pagewidth="2" pageheight="3" unit="in" margintop="0" marginbottom="0" marginleft="0" marginright="0">
test
</cfdocument>
Here is the file it generates: cfdocument.pdf (973 Bytes)