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

コード例 #1
0
ファイル: SectionTest.php プロジェクト: phprtflite/phprtflite
 /**
  * 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;
 }