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

<template pageSize="A4" showBoundary="1">
	<pageTemplate id="pt1" pageSize="LETTER">
	<pageGraphics>
		    <setFont name="Helvetica-Bold" size="18"/>
		    <drawString x="35" y="760">RML Example 20: Relativeframes</drawString>
			<image file="logo_no_bar.png" preserveAspectRatio="1" x="488" y="730" width="72" height="72"/>
    		<image file="strapline.png" preserveAspectRatio="1" x="35" y="0" width="525" />
		</pageGraphics>
		
        <frame id="first" x1="6%" y1="50%" width="40%" height="30%"/>
        <frame id="second" x1="50%" y1="50%" width="40%" height="30%"/>
        <frame id="third" x1="6%" y1="10%" width="40%" height="30%"/>
        <frame id="fourth" x1="50%" y1="10%" width="40%" height="30%"/>
	</pageTemplate>
	<pageTemplate id="pt2">
	<pageGraphics>
	<setFont name="Helvetica-Bold" size="18"/>
		    <drawString x="35" y="760">RML Example 20: Relativeframes</drawString>
			<image file="logo_no_bar.png" preserveAspectRatio="1" x="488" y="730" width="72" height="72"/>
    		<image file="strapline.png" preserveAspectRatio="1" x="35" y="0" width="525" />
    		</pageGraphics>
        <!-- no pageSize specified for this pageTemplate,
        so it should use pageSize specified on parent template element -->
         <frame id="first" x1="6%" y1="50%" width="40%" height="30%"/>
        <frame id="second" x1="50%" y1="50%" width="40%" height="30%"/>
        <frame id="third" x1="6%" y1="10%" width="40%" height="30%"/>
        <frame id="fourth" x1="50%" y1="10%" width="40%" height="30%"/>
	</pageTemplate>
</template>

<stylesheet>
<paraStyle name="intro"  fontName="Helvetica" fontSize="12" leading="12" spaceAfter="12"/>
</stylesheet>

<story>
<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="h1">This is frame 1</para>
<para>
This document illustrates the use of the percent (%) specifier for frame dimensions. The page should
be divided into four frames, each taking up a quarter of the page. This frame has a 5% border around it.
</para>
<para>This page is LETTER size</para>
<nextFrame/>
<para style="h1">This is frame 2</para>
<nextFrame/>
<para style="h1">This is frame 3</para>
<nextFrame/>
<para style="h1">This is frame 4</para>

<setNextTemplate name="pt2"/>
<nextFrame/>

<para style="h1">This is frame 1</para>
<para>This page is A4 size. It has the same frame specification as the previous page.</para>
<nextFrame/>
<para style="h1">This is frame 2</para>
<nextFrame/>
<para style="h1">This is frame 3</para>
<nextFrame/>
<para style="h1">This is frame 4</para>

</story>

</document>
