$fontAnimated = new PHPRtfLite_Font(10);
$fontLink = new PHPRtfLite_Font(10, 'Helvetica', '#0000cc');
$parBlack = new PHPRtfLite_ParFormat();
$parBlack->setIndentRight(9);
$parBlack->setBackgroundColor('#000000');
$parBlack->setSpaceBefore(12);
$parHead = new PHPRtfLite_ParFormat();
$parHead->setSpaceBefore(3);
$parHead->setSpaceAfter(8);
$parSimple = new PHPRtfLite_ParFormat();
$parSimple->setIndentLeft(5);
$parSimple->setIndentRight(0.5);
$parPhp = new PHPRtfLite_ParFormat();
$parPhp->setShading(5);
$border = PHPRtfLite_Border::create($rtf, 1, '#000000', 'dash', 0.3);
$parPhp->setBorder($border);
$parPhp->setIndentLeft(5);
$parPhp->setIndentRight(0.5);
//section
$sect = $rtf->addSection();
//table
$table = $sect->addTable();
$table->addRows(1);
$table->addRows(1);
$table->addColumn(1);
$table->addColumn(14);
$cell = $table->getCell(1, 2);
$cell->writeText('Testing paragraphs in table cells.', new PHPRtfLite_Font(14, 'Arial'), $parHead);
$cell = $table->getCell(2, 2);
$cell->addEmptyParagraph($fontSmall, $parBlack);
$cell->writeText('Various paragraphs', $fontHead, $parHead);