function writeSectionText(PHPRtfLite_Container_Section $sect, $arial14, $times12, $text, $text2, $text3)
{
    $sect->writeText('Sample RTF document', $arial14, new PHPRtfLite_ParFormat());
    $sect->writeText($text, $times12, new PHPRtfLite_ParFormat());
    $sect->writeText('Character encoding', $arial14, new PHPRtfLite_ParFormat());
    $sect->writeText($text2, $times12, new PHPRtfLite_ParFormat());
    $sect->writeText('Common implementations', $arial14, new PHPRtfLite_ParFormat());
    $sect->writeText($text3, $times12, new PHPRtfLite_ParFormat());
}
Example #2
0
 /**
  * tests addEndnote
  */
 public function testAddEndnote()
 {
     $endnote = $this->_section->addEndnote('endnote test');
     $this->assertInstanceOf('PHPRtfLite_Endnote', $endnote);
 }
Example #3
0
 /**
  * Adds section to rtf document.
  *
  * @return PHPRtfLite_Container_Section
  */
 public function addSection()
 {
     $section = new PHPRtfLite_Container_Section($this);
     if (count($this->_sections) == 0) {
         $section->setFirst(true);
     }
     $this->_sections[] = $section;
     return $section;
 }