<cfquery ...> <cfdocument format="pdf" filename="#ExpandPath(".")#\xxx.pdf"> <cfoutput query> ... query output stuff ... ... end query output stuff ... <!--- just in case the query returns multiple records ---> <cfif GetRec.Recordcount GT 0><cfdocumentitem type="pagebreak"></cfdocumentitem></cfif> <cfoutput>
<rest of tags> What I expect is a pdf file with no blank pages if there is one record. (Haven't tested it yet with multiple records.) What I get (with one record) is a blank page at the top and then my data. Why does this give me a blank page at the top (and can I stop it)? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344624 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm