PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » File Formats » File_PDF » Bug #9267

Additions

Details

Request #9267Additions
Submitted2006-11-08 12:47 UTC
Frompepe dot biondi at gmail dot com
Assignedyunosh
StatusClosed
PackageFile_PDF
PHP Version4.3.10
OSLinux
Roadmaps(Not assigned)

Comments

[2006-11-08 12:47 UTC] pepe dot biondi at gmail dot com

Description:
------------
The methods below I added to my File_PDF class. This package is EXCELENT, thanks a lot, the only thing missing is these kind of methods, who brings the package to low skill programmers.

New methods to File_PDF class:

/**
* Returns actual page width
* @author nbezi
* @return float Page Width
*/
function getPageWidth()
{
return ($this->w - $this->_right_margin - $this->_left_margin);
}

/**
* Returns actual page height
* @author nbezi
* @return float Page height
*/
function getPageHeight()
{
return ($this->h - $this->_top_margin - $this->_break_margin);
}