PHPRtfLite::setMarginLeft PHP Method

setMarginLeft() public method

sets the left margin of document pages
public setMarginLeft ( float $margin )
$margin float
    public function setMarginLeft($margin)
    {
        $this->_marginLeft = $margin;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * tests PHPRtfLite_Container_Section::getLayoutWidth
  */
 public function testGetLayoutWidthUsingRtfValues()
 {
     $this->_rtf->setPaperWidth(20);
     $this->_rtf->setMarginLeft(2.3);
     $this->_rtf->setMarginRight(2.7);
     $this->assertEquals(15, $this->_section->getLayoutWidth());
     return $this->_section;
 }