Location: PHPKode > projects > Lithron > lithron-1.0.2/examples/100-images_and_pdffiles.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: 5cm;
        }

	</style>

    <file name="<?php echo "lithron-".basename(__FILE__,"xml.php")."pdf" ?>">
		<page class="A4">
            <wrapper>
            <h1>Images &amp; PDF-Files</h1>
			<h2>JPG-image</h2>
            <image src="<?php echo dirname(__FILE__)."/media/test1.jpg" ?>" />
            <h2>CMYK-TIFF</h2>
            <image src="<?php echo dirname(__FILE__)."/media/test1.tif" ?>" />
            <h2>PDF-file</h2>
            <image src="<?php echo dirname(__FILE__)."/media/test1.pdf" ?>" />
            </wrapper>
        </page>
	</file>


	
</lithron>
Return current item: Lithron