Ha.... It never hurts to get a little extra press :) -mark
-----Original Message----- From: Kelly Matthews [mailto:[email protected]] Sent: Sunday, November 27, 2011 3:14 PM To: cf-talk Subject: Re: cfdocument and page-break-inside: avoid Some awesome company named CFWebTools! Run by this guy named Mark Kruger! LOL I'm on vacation, cut me some slack!! :) On Nov 27, 2011, at 4:06 PM, Mark A. Kruger wrote: > > Nice... who do you work for again? :D > > > -----Original Message----- > From: Kelly Matthews [mailto:[email protected]] > Sent: Sunday, November 27, 2011 2:52 PM > To: cf-talk > Subject: Re: cfdocument and page-break-inside: avoid > > > The following will work. > > create the following style: > > .PB { page-break-after: always; margin-top : 1px; margin-bottom : 1px; } > > Then anywhere you want the page to break put a paragraph tag w/ a class of > PB. > > > On Nov 27, 2011, at 3:22 PM, Justin Scott wrote: > >> >> I'm curious if anyone has found a way to prevent content blocks >> converted to PDF with cfdocument from breaking across pages (e.g. a >> div with content that could be a couple of lines or 30 lines, but I'd >> like to keep it all together on the same page). I've tried applying >> the "page-break-inside: avoid" CSS element but it appears to have no >> effect. Research on the topic has not wielded anything practical. >> Some suggest encapsulating the content with cfsavecontent and then >> counting line breaks to estimate the element height and further, keep >> track of how much has been output since the beginning or last page >> break to determine if a manual page break should be inserted. I'd >> like to find a more elegant solution using existing CSS elements if >> possible. Any thoughts from PDF-generating ninjas out there? >> >> >> -Justin >> >> > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:348889 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

