setPaperWidth() public method

sets the paper width of document
public setPaperWidth ( float $width )
$width float pager width
Example #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;
 }