I checked the docs and I don't think that this is possible, but I
thought I would ask anyway.
Here is my code:
<!--- Create the PDF document --->
<cfdocument name="MasterSchedule" format="pdf">
<!--- Create the header for each page --->
<cfdocumentitem type="header">
<font size="3"><i><strong>Master Bus Route
Report</strong></i></font>
</cfdocumentitem>
<!--- Output all of the schedules, grouping by the
Route_ID --->
<cfoutput query="getAllRoutes" group="Route_ID">
<table align="center" cellpadding="0"
cellspacing="0" border="0" width="100%">
<tr>
<th colspan="4">
#School_Name#
#Route_Name#
</th>
</tr>
<cfoutput>
<tr class="contacts_cell">
<td width="40%">
#StreetName#
</td>
<td width="20%">
(#Side#)
</td>
<td width="15%">
#Pick_Up#
</td>
<td width="15%">
#Drop_Off#
</td>
</tr>
</cfoutput>
</table>
</cfoutput>
</cfdocument>
<!--- Set the folder to save the document --->
<cfset savedFolder =
expandPath("../pdf/MasterSchedule")>
<!--- Write the file to the named folder above --->
<cffile action="write"
file="#savedFolder#/MasterSchedule.pdf" output="#MasterSchedule#"
nameconflict="overwrite">
<!--- Output the PDF --->
<cfcontent type="application/pdf" reset="true"
file="#savedFolder#/MasterSchedule.pdf">
What is happening is this. When the PDF outputs, the part with
school_name and Route_Name is sometimes left hanging at the bottom of
the page and then the corresponding schedule begins at the next page.
What I want is that if this section is all that is left on the page, I
want it to break at that point.
I know that CFDOCUMENT is a bit limited but I am hoping that I can at
least do this.
Thanks,
Bruce
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies
around the world in government. Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289335
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4