Home » File Formats » File_PDF » Bug #9267
Additions
Details
| Request #9267 | Additions |
|---|---|
| Submitted | 2006-11-08 12:47 UTC |
| From | pepe dot biondi at gmail dot com |
| Assigned | yunosh |
| Status | Closed |
| Package | File_PDF |
| PHP Version | 4.3.10 |
| OS | Linux |
| 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);
}