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:348884
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to