<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?> 
<!DOCTYPE document SYSTEM "rml_1_0.dtd"> 
<document filename="test_009_splitting.pdf"> 


<template pageSize="(595, 842)" leftMargin="72" showBoundary="1">
	<pageTemplate id="main">
	<pageGraphics>
		<setFont name="Helvetica-Bold" size="18"/>
		    <drawString x="35" y="783">RML Example 13: Splitting </drawString>
			<image file="logo_no_bar.png" preserveAspectRatio="1" x="488" y="749" width="72" height="72"/>
    		<image file="strapline.png" preserveAspectRatio="1" x="35" y="0" width="525" />
	</pageGraphics>
	<frame id="first" x1="35" y1="4.845in" width="525" height="4in"/>
	<frame id="second" x1="35" y1="1in" width="525" height="3in"/>
	</pageTemplate>



<pageTemplate id="main2">
	<pageGraphics>
		<setFont name="Helvetica-Bold" size="18"/>
		    <drawString x="35" y="783">RML Example 13: Splitting</drawString>
			<image file="logo_no_bar.png" preserveAspectRatio="1" x="488" y="749" width="72" height="72"/>
    		<image file="strapline.png" preserveAspectRatio="1" x="35" y="0" width="525" />
	</pageGraphics>
	<frame id="first" x1="35" y1="5.845in" width="525" height="4in"/>
	<frame id="second" x1="35" y1="1in" width="525" height="4in"/>
	</pageTemplate>
</template>

<stylesheet>
	<initialize></initialize>

	<paraStyle name="h1"
	fontName="Courier-Bold"
	fontSize="12"
	spaceBefore = "0.5 cm"
	/>
	
	<paraStyle name="style1"
	fontName="Courier"
	fontSize="10"
	/>


	<paraStyle name="heading"
	fontName="Helvetica-Bold"
	fontSize="24"
	leading="28"
	spaceBefore = "24"
	/>

	<paraStyle name="head_keep"
	fontName="Helvetica-Bold"
	fontSize="24"
	leading="28"
	spaceBefore = "24"
	keepWithNext="1"
	/>

	<paraStyle name="head_nokeep"
	fontName="Helvetica-Bold"
	fontSize="24"
	leading="28"
	spaceBefore = "24"
	keepWithNext="0"
	/>
	
	<paraStyle name="body"
	fontName="Helvetica"
	fontSize="12"
	leading="14"
	spaceBefore = "3"
	/>
	<paraStyle name="intro"  fontName="Helvetica" fontSize="12" leading="12" spaceAfter="12"/>
	

    <blockTableStyle id="myStyle">
        <blockAlignment value="centre"/>
        <blockFont name="Helvetica-Oblique"/>
        <lineStyle kind="GRID" colorName="black"/>
    </blockTableStyle>

</stylesheet>


<story>
<spacer length="3.65in"/>
<setNextTemplate name="main2"/>	
<storyPlace x="35" y="660" width="525" height="73" origin="page">
<para style="intro">RML (Report Markup Language) is ReportLab's own language for specifying the appearance of a printed page, which is converted into PDF by the utility rml2pdf.</para>
<hr color="white" thickness="8pt"/>
<para style="intro">These RML samples showcase techniques and features for generating various types of ouput and are distributed within our commercial package as test cases. Each should be self explanatory and stand alone.</para>
<illustration height="3" width="525" align="center">
<fill color= "(0,0.99,0.97,0.0)" />
<rect x="0" y = "-12" width="525" height="3" round="1" fill="1" stroke = "Yes" />
</illustration>
</storyPlace>

<para style="style1">This page tests splitting - this PARAGRAPH in style 'style1' should
split between the two frames on this page. This page tests splitting -
this paragraph should split between the two frames on this page. This
page tests splitting - this paragraph should split between the two
frames on this page. This page tests splitting - this paragraph should
split between the two frames on this page. This page tests splitting -
this paragraph should split between the two frames on this page.
</para>

<nextFrame/>

<spacer length="3.65in"/>
<pre style="style1">This page tests splitting - this PRE in style
'style1' should split between the two frames on this page. These
frames should be ON PAGE TWO, otherwise this test has FAILED. This
page tests splitting - this preformatted paragraph should split between the
two -- (proves this is a pre)
frames on this page. This page tests splitting - this pre should
split between the two frames on this page. This page tests splitting -
this pre should split between the two frames on this page. This
page tests splitting - this pre should split between the two
frames on this page. Leading space
       should be preserved!</pre>

<nextFrame/>

<spacer length="3.65in"/>

<blockTable colWidths="3cm, 3cm,3cm" style="myStyle">
    <tr>	<td>This tests </td>	<td>how a </td><td>simple table</td></tr>
    <tr>	<td>splits</td>	<td>across</td><td>frames</td></tr>
    <tr>	<td>blah</td>	<td>blah</td><td>blah</td></tr>
</blockTable>

<nextFrame/>

<spacer length="3.65in"/>

<plugInFlowable module="mymodule" function="myPreformatted"/>



</story>

</document>
