Location: PHPKode > projects > Lithron > lithron-1.0.2/examples/102-image_mode_meet.xml.php
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<lithron>
	<style>
		page.A4 {
            height: 297mm;
            width: 210mm
        }

        wrapper {
            display: block;
            margin-top: 2cm;
            margin-right: 3cm;
            margin-bottom: 2cm;
            margin-left: 2cm;
        }
        
        image
        {
            width: 3cm;
            height: 3cm;
            background-color: cmyk(0,0,0,10);
        }

	</style>

    <file name="<?php echo "lithron-".basename(__FILE__,"xml.php")."pdf" ?>">
		<page class="A4">
            <wrapper>
            <h1>Image Mode Meet</h1>
			<h2>meet</h2>
            <image
                img-position-mode="meet"
                src="<?php echo dirname(__FILE__)."/media/test1.pdf" ?>" />
			<h2>meet, img-position-x: 0.5, img-position-y: 0.5</h2>
            <image
                height="7cm"
                img-position-mode="meet"
                img-position-x="0.5"
                img-position-y="0.5"
                src="<?php echo dirname(__FILE__)."/media/test1.pdf" ?>" />
			<h2>meet, img-position-x: 0.5, img-position-y: 0.5</h2>
            <image
                width="10cm"
                img-position-mode="meet"
                img-position-x="0.5"
                img-position-y="0.5"
                src="<?php echo dirname(__FILE__)."/media/test1.pdf" ?>" />
			<h2>meet, img-position-x: 1, img-position-y: 1</h2>
            <image
                width="10cm"
                img-position-mode="meet"
                img-position-x="1"
                img-position-y="1"
                src="<?php echo dirname(__FILE__)."/media/test1.pdf" ?>" />
            </wrapper>
        </page>
	</file>


	
</lithron>
Return current item: Lithron