<?xml version='1.0' encoding='utf-8'?>

<!-- 
Copyright 2005 DataActive Communications Limited

Unless required by applicable law or agreed to in writing, software,
documentation and examples are distributed under a 'AS IS' BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-->

<!DOCTYPE re:root SYSTEM 'http://reality.dataactive.com/DTDs/reality-1.0.dtd'>
<re:root xmlns:re='http://reality.dataactive.com'>
	<re:document 
		version='1.0' 
		language-code='ENG' 
		country-code='GBR' 
		category-code='examples' 
		uid='030_060' 
		display-name='Aligning text'>

		<re:outputs collate='false' compression='9' manifest='false'>
			<re:output 
				name='Kwik PDF' 
				file-name='030_060_AligningTextVertically' 
				type='reality.pdf.kwik' 
				options='page-crop-marks: false' />
		</re:outputs>

		<re:styles>
			<re:style name='mainLayer'>
				<re:styleattribute name='position' value='absolute' />
				<re:styleattribute name='left' value='20' />
				<re:styleattribute name='top' value='150' />
				<re:styleattribute name='width' value='400' />
				<re:styleattribute name='height' value='50' />
				<re:styleattribute name='border-stroke-width' value='1' />
				<re:styleattribute name='border-stroke-color' value='0.5,0.5,0.5,0.5' />
				<re:styleattribute name='border-stroke-color-type' value='cmyk' />
				<re:styleattribute name='font-name' value='Times-Bold' />
				<re:styleattribute name='font-size' value='14' />
			</re:style>

			<re:style name='secondaryLayer' parent='mainLayer'>
				<re:styleattribute name='top' value='250' />
			</re:style>

			<re:style name='thirdLayer' parent='mainLayer'>
				<re:styleattribute name='top' value='350' />
			</re:style>

			<re:style name='fourthLayer' parent='mainLayer'>
				<re:styleattribute name='top' value='450' />
			</re:style>

			<re:style name='fifthLayer' parent='mainLayer'>
				<re:styleattribute name='top' value='550' />
			</re:style>

			<re:style name='sixthLayer' parent='mainLayer'>
				<re:styleattribute name='top' value='650' />
			</re:style>
		</re:styles>


		<re:content>
			<re:page>

				<re:layer class='mainLayer'>
					<re:paragraph  style='text-align:left;'>
						Left Aligned text 
					</re:paragraph>
				</re:layer>

				<re:layer class='secondaryLayer'>
					<re:paragraph  style='text-align:center;'>
						Centered aligned text 
					</re:paragraph>
				</re:layer>

				<re:layer class='thirdLayer'>
					<re:paragraph  style='text-align:right;'>
						Right aligned text 
					</re:paragraph>
				</re:layer>

				<re:layer class='fourthLayer' style='align-vertical:top;'>
					<re:paragraph>
						Top aligned text 
					</re:paragraph>
				</re:layer>
				
				<re:layer class='fifthLayer' style='align-vertical:middle;'>
					<re:paragraph>
						Midlle aligned text 
					</re:paragraph>
				</re:layer>

				<re:layer class='sixthLayer' style='align-vertical:bottom;'>
					<re:paragraph>
						Bottom aligned text 
					</re:paragraph>
				</re:layer>
			</re:page>
		</re:content>

	</re:document>
</re:root>
