Location: PHPKode > projects > pdfDOM > pdfdom-0.5/classes/class.page.php
<?php
/******************************************************************************
* File      	:	$RCSfile: class.page.php,v $
* Project   	:   pdfDOM
* Description	:   Page object
* Author    	:   Timo A. Hummel <hide@address.com>
* Created   	:   28.01.2003
* Modified  	:   $Date: 2005/06/23 11:31:04 $
*
* This file is part of the pdfDOM project.
*
* More information: 
* http://www.pdfdom.org
* http://www.sf.net/projects/pdfdom
*
* © four for business AG, www.4fb.de
*
* $Id: class.page.php,v 1.2 2005/06/23 11:31:04 timo_h Exp $
******************************************************************************/

class pdPage extends pdContainer
{
	var $_pdf;
	var $_root;
	
	function pdPage ($root = true)
	{
		global $_pdfDom_PDF;

		parent::pdContainer();
		
		if (!is_object($_pdfDom_PDF))
		{
			$_pdfDom_PDF = new FPDF;
		}
		
		$this->_root = $root;
		
		$this->coordinates->setXYWH($_pdfDom_PDF->lMargin,$_pdfDom_PDF->tMargin,$_pdfDom_PDF->w-$_pdfDom_PDF->rMargin-$_pdfDom_PDF->lMargin, $_pdfDom_PDF->h-$_pdfDom_PDF->bMargin-$_pdfDom_PDF->tMargin);
		
		//$this->setBorder(0.1);
	}
	
	
	function render()
	{
		global $_pdfDom_PDF;
		
		$_pdfDom_PDF->AddPage();
		parent::render($this->_root);

	}
}
?>
Return current item: pdfDOM