> I have a page that generates a pdf on the fly. Every now and then, it > will add additional pages to the pdf. This happens at random times > and when it does happen, it will add anywhere from 2 pages to 200+ > pages.
Chris, not totally sure, but I think this happens when your last loop iteration has <cfdocumentitem type="pagebreak" />. This results in a blank page. Getting around it is a two stage procedure: 1) use css to generate the page break rather than <cfdocumentitem>. This is because you cannot wrap <cfdocumentitem> in any conditional code. I believe it looks like <span style="page-break-before:always">, but take a look at the css specs for more details 2) wrap that <span> in conditional code a la <if not last loop iteration><css page break></if> -- Josh ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278182 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

